blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ae08fb15a0b7691cf92e74eed6d5cfba40ffad58 | 6ff85b80c6fe1b3ad5416a304b93551a5e80de10 | /Python/Algorithm/ExitChar.py | ce23c21ad0db983eebb09e241329225d8636f1e0 | [
"MIT"
] | permissive | maniero/SOpt | c600cc2333e0a47ce013be3516bbb8080502ff2a | 5d17e1a9cbf115eaea6d30af2079d0c92ffff7a3 | refs/heads/master | 2023-08-10T16:48:46.058739 | 2023-08-10T13:42:17 | 2023-08-10T13:42:17 | 78,631,930 | 1,002 | 136 | MIT | 2023-01-28T12:10:01 | 2017-01-11T11:19:24 | C# | UTF-8 | Python | false | false | 257 | py | while True:
entrada = input("Insira um número: ")
if entrada == ' ':
break
try:
num = int(entrada)
print(num)
except ValueError:
print('Dado inválido')
print('fim')
#https://pt.stackoverflow.com/q/462114/101
| [
"noreply@github.com"
] | maniero.noreply@github.com |
d9d8ef34a7409dbe76b838decc290acf0fde701e | 4e5b3985ea4425c2895f638b0dee4c5f64882858 | /clients/kratos/python/test/test_login_flow_method.py | 6232c8459e9cbd12a1f6d0f0da245935e07f993f | [
"Apache-2.0"
] | permissive | ms42Q/sdk | f7d96399c3a9006de0bba5f679814c94c6a9f8a8 | 398ebb59b0ab5da762f2a94efac8e94f5313a851 | refs/heads/master | 2023-03-25T18:42:20.439717 | 2021-03-17T13:13:06 | 2021-03-17T13:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,903 | py | # coding: utf-8
"""
Ory Kratos
Welcome to the ORY Kratos HTTP API documentation! # noqa: E501
The version of the OpenAPI document: v0.5.0-alpha.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import ory_kratos_client
from ... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
4697ae37ae796a2ee1eca90e5c9d9e07086bbdef | fa5546e2d55ecbdd269e4a8a338dd34c37627961 | /run_sim/analysis_sim/angular-res.py | 5b46345b7a60e41a66a32b4de02183b2168723ba | [] | no_license | zdgriffith/ShowerLLH_scripts | 7f1713b470027259cfefc855597a0d46709e4c25 | 4ba27d416385a82ef1920763dc20a1d6dc81309e | refs/heads/master | 2021-01-19T07:31:50.072658 | 2016-05-03T16:47:29 | 2016-05-03T16:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | #!/usr/bin/env python
#=========================================================================
# File Name : angular-res.py
# Description :
# Creation Date : 04-26-2016
# Last Modified : Tue 26 Apr 2016 03:48:09 PM CDT
# Created By : James Bourbeau
#==========================================================... | [
"jrbourbeau@gmail.com"
] | jrbourbeau@gmail.com |
7b1648d71d5e64b480de8d7e481dd76207f65e22 | f7a10bbf3382a31248767e591ac3fed5f67ca565 | /pretix_twilio/urls.py | 9ae10ea7bb7a6122488c8c8ee36e19fc785bb133 | [
"Apache-2.0"
] | permissive | rixx/pretix-twilio | 1abc8e7c431e57b3f7c145f2fdf1cbbb2a6b75e2 | 02948b19f653de7f83c8cfe96f153fbc42506284 | refs/heads/master | 2023-02-23T08:51:26.448968 | 2021-02-01T15:04:25 | 2021-02-01T15:04:25 | 334,114,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(
r"^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/settings/twilio$",
views.TwilioSettings.as_view(),
name="settings",
),
]
| [
"r@rixx.de"
] | r@rixx.de |
6707ff1c23ea719bd5021468870a61be6754948c | 6af48bc7a6e5c5cbe902312bae612e32f59f765f | /contract_strategy/martin_future_short.py | 9b114e5197c214a30b1b138dfe50d893af12118f | [] | no_license | mujinveil/blockchain_quant | cf54f329d2ef95bf5f379761e7a98428e78c72e3 | 4c5e20a8fbf6f1475769784110132ad508e11bd2 | refs/heads/main | 2023-08-21T06:38:49.014069 | 2021-11-02T07:30:27 | 2021-11-02T07:30:27 | 423,743,082 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 28,405 | py | # encoding='utf-8'
import json
import time
from threading import Thread
import requests
import sys
sys.path.append("..")
from loggerConfig import logger
from tools.Config import futurepricelimit, future_strategy_status_update, future_takerFee, \
contract_size_dict
from tools.databasePool import r0, POOL
... | [
"noreply@github.com"
] | mujinveil.noreply@github.com |
b6c4e6243f7aed9aeb62bb560838ff5c8daa92fe | 94b9589d8eb357f784f425051ffb10aa6d2104fa | /lib/doconce/__init__.p.py | cb305805b347a221aa72ac2fccf05f1fe1447c5c | [
"BSD-3-Clause"
] | permissive | sjsrey/doconce | 29607366756a3f48568a128a88c9bb5d65dc3d9d | 7bd32f8b0c99ad6f1173df0c8e058ea1bd400e28 | refs/heads/master | 2021-01-15T17:55:48.436706 | 2015-08-25T09:30:19 | 2015-08-25T09:30:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | '''
# #include "docstrings/docstring.dst.txt"
'''
__version__ = '1.0.3'
version = __version__
__author__ = 'Hans Petter Langtangen', 'Johannes H. Ring'
author = __author__
__acknowledgments__ = ''
from doconce import doconce_format, DocOnceSyntaxError
| [
"hpl@simula.no"
] | hpl@simula.no |
edeb32b3550b8a10a927191fba172c26c0f4753b | 8d5c9369b0fb398c5a6078f6cac43ba8d67202fa | /bscan/models.py | 47a772619a2637e7c450ea377eb1b3ed73c8942e | [
"MIT"
] | permissive | raystyle/bscan | 45191c2c0d26fe450c5d95567b83d47dfcb4c692 | 1edf0c0e738153a294d5cdc1b69d8f167152d5a2 | refs/heads/master | 2020-04-25T03:15:37.186913 | 2019-02-09T22:23:44 | 2019-02-09T22:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | """Models for use in `bscan` operations."""
from collections import (
namedtuple)
from typing import (
List)
from bscan.io_files import (
file_exists)
from bscan.runtime import (
get_db_value)
from bscan.dir_structure import (
get_scan_file)
ParsedService = namedtuple(
'ParsedService',
['... | [
"welch18@vt.edu"
] | welch18@vt.edu |
16e025d570f7c1305bab68b58f2f79fcb39b1095 | ac7435b0b3faa6b6cf51d0d6b43984b77b70a37c | /nova/tests/unit/api/openstack/compute/test_limits.py | d08ea4d39e999cf846a4a5ca79f503837cc126e8 | [
"Apache-2.0"
] | permissive | gokrokvertskhov/nova-mesos-driver | 04688cd51cad9790cf5460b44ba527b51080760d | fdb9c8468f6a8680c19095a81bf77884ae61e170 | refs/heads/master | 2021-01-10T10:51:07.096729 | 2016-03-25T01:45:10 | 2016-03-25T01:45:10 | 54,685,199 | 0 | 1 | Apache-2.0 | 2020-07-24T01:00:58 | 2016-03-25T01:22:06 | Python | UTF-8 | Python | false | false | 33,161 | py | # Copyright 2011 OpenStack Foundation
# 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 requ... | [
"gokrokvertskhov@mirantis.com"
] | gokrokvertskhov@mirantis.com |
f1f81b63ba6f1487db1daac51ce24b4bea37477e | b4407a7ec61b55cc03cdc65e83d68e162f602cb4 | /2020/day07_bags.py | 9b4eca3fcd4f3695c1df41b8b5ca8198ad2a86d0 | [] | no_license | andy1li/adventofcode | 4f8a3f5776d1f73cbed65f9824b69da2079a3e3b | fa04625d3b59adfbfbc9d1e36c5b333553fda2f6 | refs/heads/master | 2022-12-23T01:19:56.695103 | 2022-12-14T20:48:59 | 2022-12-14T20:50:11 | 225,248,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | # https://adventofcode.com/2020/day/7
from collections import defaultdict
import re
def parse(rules):
G = defaultdict(set)
for rule in rules:
colors = re.findall(r'(\d )?([a-z]+ [a-z]+) bag', rule)
G[colors[0][1]] |= set(colors[1:])
G['no other'] # put 'no other' in G
return G
def fst... | [
"li.chenxing@gmail.com"
] | li.chenxing@gmail.com |
3eca35a906f26b51daa1c5ecc00d1e2602edb3c3 | b8729beb5cd5cbc648cdf7fa2c6d2cb7be7442ed | /medicalcase/migrations/0002_auto_20170920_1822.py | 5aad903054c4fa18d1b7f64dae22135346962c27 | [] | no_license | faithNassiwa/Final360MedNet | e51cc10cc7f34104c70bb7a4d2d38743af150a41 | 886c0d913d182a48fafce2d030ec8ec6f743e3a9 | refs/heads/master | 2021-01-23T23:03:05.486452 | 2017-11-06T09:26:34 | 2017-11-06T09:26:34 | 102,952,517 | 0 | 1 | null | 2017-09-15T16:52:22 | 2017-09-09T12:16:01 | HTML | UTF-8 | Python | false | false | 8,344 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-09-20 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('medicalcase', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"faithnassiwa@gmail.com"
] | faithnassiwa@gmail.com |
89b3858e328d24c3eb57c20fb375f5e9b9a3c083 | 3baf324d8221f42c6d4714dfb5179c83a2393717 | /src/gallium/drivers/zink/zink_instance.py | a57ee32bcd667def09795c4c05bc9c63660188f4 | [] | no_license | chatzem/mesa | bcfb991f79bc2dd0df9bece4e20a31fc989625f1 | 6d2afe1c83254c4cf437e14a221087ecc01cc7d1 | refs/heads/master | 2023-03-01T13:35:14.525825 | 2021-01-27T15:36:14 | 2021-02-08T14:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,194 | py | # Copyright © 2020 Hoe Hao Cheng
#
# 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, distrib... | [
"eric+marge@anholt.net"
] | eric+marge@anholt.net |
a4b8c3d29038e9d1f5f44a739ddb3ce41c146c65 | 0f9c9e4c60f28aa00aff8b80e1e4c142c61d24ce | /Python/LeetCode/ByteDance/215_find_kth_largest.py | 12a1bb08aaa804c798e2c67fce1404231ea277f4 | [] | no_license | shouliang/Development | c56fcc69e658393c138b63b507b96c48232128d5 | b7e3b02c50d54515e584cb18dff83109224245d0 | refs/heads/master | 2020-03-22T09:14:51.070228 | 2019-08-29T02:50:26 | 2019-08-29T02:50:26 | 139,825,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | '''
数组中的第K个最大元素
215. Kth Largest Element in an Array:https://leetcode.com/problems/kth-largest-element-in-an-array/
解释:
在未排序的数组中找到第 k 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。
示例 1:
输入: [3,2,1,5,6,4] 和 k = 2
输出: 5
示例 2:
输入: [3,2,3,1,2,4,5,5,6] 和 k = 4
输出: 4
说明:
你可以假设 k 总是有效... | [
"git@git.dxl.cc:node/hunqing.git"
] | git@git.dxl.cc:node/hunqing.git |
02615e370b0bfc1f04ad03ca66aa75ed9099e496 | 286dcbb3c75370c2fb06f1d91bb0c98f260b4002 | /elm_architect/main.py | 18538592545b26a1ebff10f2632152491448d283 | [
"BSD-3-Clause"
] | permissive | andrewgryan/bokeh-playground | 6e4aea21bc50d0a8c54b30eeb9ccfee0a92df2e1 | aeab70627a5ccd7f210c354098d30bdf92bb553f | refs/heads/master | 2021-07-04T19:53:25.595711 | 2020-07-31T13:58:22 | 2020-07-31T13:58:22 | 136,485,392 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,334 | py | import bokeh.plotting
import bokeh.models
import bokeh.layouts
from observe import Observable
from redux import Store
import actions
class View(Observable):
def __init__(self):
self.layout = bokeh.layouts.column()
super().__init__()
def render(self, state):
counter = state.get("counte... | [
"andrew.ryan@metoffice.gov.uk"
] | andrew.ryan@metoffice.gov.uk |
8a9761c62f9b83b30a715220682f3ba589974ff0 | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/Clarification/Backtracking/131.分割回文串.py | d841d400f8f0eefd68508d27b7c1b3417fdef254 | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | UTF-8 | Python | false | false | 632 | py | # 给定一个字符串 s,将 s 分割成一些子串,使每个子串都是回文串。
#
# 返回 s 所有可能的分割方案。
#
# 示例:
#
# 输入: "aab"
# 输出:
# [
# ["aa","b"],
# ["a","a","b"]
# ]
# 方法一:回溯
class Solution:
def partition(self, s: str) -> List[List[str]]:
res = []
def helper(s,tmp):
if not s:
res.append(tmp)... | [
"mzm@mail.dlut.edu.cn"
] | mzm@mail.dlut.edu.cn |
b598cf28af263db9d8d3048e6612b97921b96f8c | 31c7a43bab54a6b2dd4e76f72b8afbc96d876b4f | /custom_components/mrbond_airer/cover.py | 7397c3854d46c3ac40e4d8dec85e1f734e54d305 | [] | no_license | zhengwenxiao/HAExtra | 39c486c05e5db90b6d841fcc35d7a1af64358ffc | 2cd21b166e92f43988459dd1448002ce7a9b52e2 | refs/heads/master | 2023-01-19T07:55:45.456000 | 2020-11-15T11:39:31 | 2020-11-15T11:39:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,780 | py | """Support for MrBond Airer."""
import logging
from . import MiioEntity, DOMAIN
from homeassistant.components.cover import CoverEntity, ATTR_POSITION
from homeassistant.helpers.restore_state import RestoreEntity
from homeassistant.helpers.event import async_call_later
_LOGGER = logging.getLogger(__name__)
AIRER_DURA... | [
"Yonsm@qq.com"
] | Yonsm@qq.com |
709dd4b6b71ba31375c4507cb10ca26485c5d4b1 | 30ab9750e6ca334941934d1727c85ad59e6b9c8a | /zentral/contrib/nagios/apps.py | 01b4ebb306e996d8eeecebd091d7caaee7e16d81 | [
"Apache-2.0"
] | permissive | ankurvaishley/zentral | 57e7961db65278a0e614975e484927f0391eeadd | a54769f18305c3fc71bae678ed823524aaa8bb06 | refs/heads/main | 2023-05-31T02:56:40.309854 | 2021-07-01T07:51:31 | 2021-07-01T14:15:34 | 382,346,360 | 1 | 0 | Apache-2.0 | 2021-07-02T12:55:47 | 2021-07-02T12:55:47 | null | UTF-8 | Python | false | false | 182 | py | from zentral.utils.apps import ZentralAppConfig
class ZentralNagiosAppConfig(ZentralAppConfig):
name = "zentral.contrib.nagios"
verbose_name = "Zentral Nagios contrib app"
| [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
555be1a2570cfdb9f48f526e367dbee1e7e17642 | 3eb55e98ca635cde6c41e895844f6c01b06a91ac | /if_else_2.py | fd625f3734f119929fc686ef956ba52937042625 | [] | no_license | tatikondarahul2001/py | defefacdb726aeb3e2d5515cb8a8dd14e3b7f18c | 30c459312befc2426f403ea4062233dbd0b4fa0a | refs/heads/main | 2023-03-12T07:41:17.550136 | 2021-02-24T14:43:35 | 2021-02-24T14:43:35 | 323,222,577 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | n = int(input("enter the annual income : "))
if(n<=150000):
print("the person is eligible for scholarship")
else:
print("the person is not eligible for scholarship") | [
"noreply@github.com"
] | tatikondarahul2001.noreply@github.com |
44d735b35e4ea027fb4760cd6b8b6201d3419cf9 | e987cd566edc75997f9b02377514d4f3a0dba12c | /sys/src/Python/diffTools/iwdiffLib.py | 60f54a8287436d221f81f04de8d53fb7552002d2 | [] | no_license | 7u83/maxdb-buildtools | f942adff2cd55d0a046b6ef3e18f6645b011a26e | ce9a56943f6195d6755e983035aa96cbe95e6cb2 | refs/heads/master | 2020-05-04T18:23:30.849371 | 2015-02-15T19:25:49 | 2015-02-15T19:25:49 | 30,428,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,900 | py |
#
# ========== licence begin GPL
# Copyright (C) 2001 SAP AG
#
# This program 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 2
# of the License, or (at your option) any late... | [
"7u83@mail.ru"
] | 7u83@mail.ru |
51046aee0f153408ff027109285c618b9495e9aa | ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86 | /pychron/core/ui/stage_component_editor.py | 847648067614b665d91cbd3a8f8866c73f7f35d9 | [
"Apache-2.0"
] | permissive | UManPychron/pychron | 2fb7e479a9f492423c0f458c70102c499e1062c4 | b84c9fd70072f9cbda30abe2c471e64fe3dd75d8 | refs/heads/develop | 2022-12-03T23:32:45.579326 | 2020-01-29T19:02:20 | 2020-01-29T19:02:20 | 36,100,637 | 0 | 0 | null | 2015-05-23T00:10:06 | 2015-05-23T00:10:05 | null | UTF-8 | Python | false | false | 1,270 | py | # ===============================================================================
# Copyright 2013 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
a654ea1d0fbbc83d6ab5cc63095e9c0667b0cb68 | 7875b7685dde7ad0bbcf9e0540373d1ce5e886b7 | /project_name/conf/settings.py | 97b49557acd3f508bf0071549f107b7a089c2167 | [
"BSD-2-Clause"
] | permissive | bruth/wicked-django-template | ea6b742f4b8bd73cf68d5a86ffe4582f9c747eb0 | 7628d7a3fa50b23c34772a6978c00019e4f6526e | refs/heads/master | 2020-05-17T07:56:17.507674 | 2018-06-21T19:30:02 | 2018-06-21T19:30:02 | 3,102,471 | 2 | 3 | BSD-2-Clause | 2018-06-21T19:30:03 | 2012-01-04T14:28:29 | JavaScript | UTF-8 | Python | false | false | 909 | py | import os
from .global_settings import * # noqa
try:
from .local_settings import * # noqa
except ImportError:
import warnings
warnings.warn('Local settings have not been found '
'({{ project_name }}.conf.local_settings)')
# FORCE_SCRIPT_NAME overrides the interpreted 'SCRIPT_NAME' prov... | [
"b@devel.io"
] | b@devel.io |
bba2caecf19e451f27a23008d71ffa481e47d1d8 | f170ed80b4269c8fbe622b78cadc7f293a956e56 | /lib/googlecloudsdk/command_lib/util/apis/yaml_command_translator.py | 57b1ab3c6e052d4a5a4c050ef01199f9422cf6f4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/google-cloud-sdk-2 | 16227c61c6d60b1af290348ed5f6075741f5b68a | b94a8c7ea9776effc9cee67f1db677cec4800b6d | refs/heads/master | 2022-11-20T14:46:30.764336 | 2020-07-17T14:41:11 | 2020-07-17T14:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,594 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
0f8536bc38460e21be289a3a0f339c9ae9761456 | 2d930aadf19b2ad6ea49725099d2f37475cd57f8 | /test/functional/p2p-fullblocktest.py | 402e3680f305949bb3493695dacbfd80113bdf7a | [
"MIT"
] | permissive | stratton-oakcoin/oakcoin | ea83774c9f6ea64adb8832770e6219ffb31edef6 | fe53193a50bd3674211448f1dcc39c6f9f042bb2 | refs/heads/master | 2021-01-20T13:22:05.877005 | 2017-05-07T10:09:57 | 2017-05-07T10:09:57 | 90,477,972 | 1 | 2 | null | 2017-05-07T10:09:57 | 2017-05-06T16:58:05 | C++ | UTF-8 | Python | false | false | 52,699 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Oakcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test block processing.
This reimplements tests from the oakcoinj/FullBlockTestGenerator used
by the pu... | [
"s.matthew.english@gmail.com"
] | s.matthew.english@gmail.com |
3bcde3d67807a656d564f24828810b2c5be3d078 | 6dc9f1753f0e2ccaef6fb385324ba0602a04042a | /CUHK_CPM/GPS_Project/GPS_main/python/gps/utility/coord_transform.py | 0c4b1a2ebb1b49ef5cb0c4d38ed6eb3b5bd97672 | [] | no_license | SunnyLyz/Deep_Learning | c413abe3ef6510b3492f0a73c9a287b4bf56ec2c | 9fa58688a7daffdded8037b9fa20c571a00f87e0 | refs/heads/master | 2021-06-21T12:12:39.450564 | 2017-07-18T12:20:45 | 2017-07-18T12:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,615 | py | import numpy as np
import cv2
robot2world_offset_mm = np.array([0, 0, 630], dtype=float)
peg2robot_offset_mm = np.array([105, 0, 0], dtype=float)
peg_points_mm = np.array([[ 0, 0, 0],
[ 100, 30, 30],
[ 100, -30, 30],
[ 100, 30, -30... | [
"hswong1@uci.edu"
] | hswong1@uci.edu |
2327db29e9f8718074dddfe00384342630510b74 | db58da608831911373c4a5d29ae1f5ec125c1f1d | /apps/users/migrations/0007_merge_20181012_1750.py | 7cf373785a91d9ffc4f51a35c0a63a198e326e54 | [] | no_license | m6ttl/ew_git | f4ff23b9a5df768f966292bbdeeea0c9ae317c12 | dd6ee2d781b5eb305ec212be2fd58b56bf6db8b3 | refs/heads/master | 2022-11-30T23:23:58.711424 | 2019-08-23T09:28:11 | 2019-08-23T09:28:11 | 202,071,075 | 0 | 0 | null | 2022-11-22T02:24:13 | 2019-08-13T05:30:24 | HTML | UTF-8 | Python | false | false | 269 | py | # Generated by Django 2.0.1 on 2018-10-12 17:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20181010_1442'),
('users', '0006_auto_20180917_1135'),
]
operations = [
]
| [
"steve_wei@163.net"
] | steve_wei@163.net |
5c1ae67adb38e75d56a6b033979191ccaf1b9c4c | 06a26410235304ca3061f2abf861ceef3eef6c22 | /tools/BUILD | 8ca73d1470ef71b2fb4ba46f3bc7997dcc8e7d46 | [
"Apache-2.0"
] | permissive | mjbots/rules_mbed | d36354388661f5b1eaed3b88daf3fe201d4ab29c | 4a7094b9082625de3b979eae7f5df705cf110695 | refs/heads/master | 2023-01-13T21:56:15.464329 | 2023-01-09T12:47:59 | 2023-01-09T12:47:59 | 157,472,176 | 21 | 6 | null | null | null | null | UTF-8 | Python | false | false | 830 | # -*- python -*-
# Copyright 2018 Josh Pieper, jjp@pobox.com.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"jjp@pobox.com"
] | jjp@pobox.com | |
a2b592be972a58c8ade6cb24e688d722189bba46 | 6e57bdc0a6cd18f9f546559875256c4570256c45 | /kernel/tests/net/test/net_test.py | 6b19f54d82e214c2b3503838ff0a8f78cbbf9489 | [] | no_license | dongdong331/test | 969d6e945f7f21a5819cd1d5f536d12c552e825c | 2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e | refs/heads/master | 2023-03-07T06:56:55.210503 | 2020-12-07T04:15:33 | 2020-12-07T04:15:33 | 134,398,935 | 2 | 1 | null | 2022-11-21T07:53:41 | 2018-05-22T10:26:42 | null | UTF-8 | Python | false | false | 13,489 | py | #!/usr/bin/python
#
# Copyright 2014 The Android Open Source Project
#
# 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 appl... | [
"dongdong331@163.com"
] | dongdong331@163.com |
64b0953b9a5066d67aed78f90ce8d6b07041695a | b2dc8aa865136a80bba964624c641a32f25d0aa8 | /torch/_decomp/__init__.py | d3ddaf4ebbe78df4eaaaae0166e3e3201489237b | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | DoubleVII/pytorch | 91425f16239dfdd48f5faa9ea1b8d2642f9aab6b | 67eca7cd321f73aa8d6c1a76a7621d3db9a7c97e | refs/heads/master | 2023-02-20T23:49:06.344426 | 2023-02-08T22:40:45 | 2023-02-08T22:40:45 | 274,839,708 | 1 | 0 | NOASSERTION | 2020-06-25T05:52:16 | 2020-06-25T05:52:15 | null | UTF-8 | Python | false | false | 10,355 | py | import inspect
from collections import defaultdict
from functools import wraps
from itertools import chain
from typing import Callable, Dict, Sequence, Union
import torch
import torch.library
from torch._ops import OpOverload, OpOverloadPacket
from torch.utils._pytree import tree_map
__all__ = [
"decomposition_ta... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
85fed18620833a307afb4302f5a3e857877e0f05 | 8402f6ed6dd652afc8bd0ab2110c30509d39fe7a | /lightning/tests/test_lasvm.py | eaf9c360fa19df63cecc7edc8a973ed11d11ee66 | [] | no_license | Raz0r/lightning | 690f8bd99c59c8db38b5c421bb845c9eeda2101b | 06c7ff5d9a98c19564a24bd17032bbf3a61da770 | refs/heads/master | 2021-01-20T23:27:25.745058 | 2012-10-29T12:40:30 | 2012-10-29T12:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | import numpy as np
import scipy.sparse as sp
from numpy.testing import assert_array_equal, assert_array_almost_equal, \
assert_almost_equal
from nose.tools import assert_raises, assert_true, assert_equal
from sklearn.datasets.samples_generator import make_classification
from lightning.lasvm... | [
"mathieu@mblondel.org"
] | mathieu@mblondel.org |
21b6ca2d5a5996a215be096064caa1906c792a0a | 09d4e64288e07533679fdc838e456ed3d51e616f | /keepkey_pycoin_bip32utils/bip32test.py | 49d942845b172de488b22102eaf5b7212832a0f7 | [] | no_license | the-schnibble/dash-testnet | 18850e87b037390df6b429688d888b387583f08b | 9d35337e47377e3ed51d72885448faedb7602fdf | refs/heads/master | 2021-01-02T08:30:37.455104 | 2017-08-01T16:08:45 | 2017-08-03T12:28:49 | 99,014,531 | 2 | 1 | null | 2017-08-01T15:11:35 | 2017-08-01T15:11:35 | null | UTF-8 | Python | false | false | 1,802 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://github.com/chaeplin/bip32utils
from bip32utils import BIP32Key
def process_address(desc, address):
print(desc, address)
return None
def process_chain(desc, chain_node):
i = 0
g = 0
while True:
desci = '%s%d' % (desc, i)
add... | [
"chaeplin@gmail.com"
] | chaeplin@gmail.com |
44b1fcafdc97254367b9928faa73eed2ca330ea9 | 22954a0c13d7bf1824320802e802aa8166f16d76 | /web_scraping/rhiphopheads/middlewares.py | b191e9d8fe8d58130b892422ee57285ba19c068a | [] | no_license | luke-zhu/cs1951a-data | e0c7a96c7e100c278722419ba3bc845f6a5326c4 | 925c3263988db1de815589c5e47ddd918c345b25 | refs/heads/master | 2021-01-20T07:40:21.372377 | 2017-05-02T21:47:08 | 2017-05-02T21:47:08 | 90,025,042 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class RhiphopheadsSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scr... | [
"luke_zhu@brown.edu"
] | luke_zhu@brown.edu |
2b0d899a3c134524e228897572665cbd2c9538c6 | be134c181703b95aca1e48b6a31bcfdb7bcfcc76 | /site/mezzanine_old/generic/migrations/0001_initial.py | 31d4077247ac13758bdd23f109705d4e0c018a28 | [] | permissive | aldenjenkins/ThiccGaming | 0245955a797394bcfeedb2cfb385f633653ba55d | 4790d2568b019438d1569d0fe4e9f9aba008b737 | refs/heads/master | 2022-12-16T02:43:36.532981 | 2021-11-17T04:15:21 | 2021-11-17T04:15:21 | 154,858,818 | 0 | 0 | BSD-3-Clause | 2022-12-08T02:58:44 | 2018-10-26T15:52:39 | Python | UTF-8 | Python | false | false | 3,731 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('django... | [
"alden@aldenjenkins.com"
] | alden@aldenjenkins.com |
9f8b39a6994e8d684dd21ddf440225ddc1317351 | af6be0921c461143424fc75ed5a55b25ad792952 | /CPANJMIS-master/CPANJMIS-master/project/apps/account/migrations/0013_auto_20190805_1608.py | e1703d18603000555063bf77a18608c98ffde606 | [] | no_license | bobolinbo/bobolearning | c90b4dccdfcec302df9f166a04a75d585e4c6a0b | ac520d9311b15e29c055edb1eb7b3b800d5051ac | refs/heads/master | 2020-08-13T07:24:57.044426 | 2019-10-14T04:11:46 | 2019-10-14T04:11:46 | 214,931,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # Generated by Django 2.2 on 2019-08-05 16:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('basicdata', '0022_auto_20190805_1608'),
('account', '0012_auto_20190805_16... | [
"1539019002@qq.com"
] | 1539019002@qq.com |
3a09561fce48fd4e14b41ac61dcac6b26216eea6 | 4db8f94b0002166c74cb3cfbd10a85beef2f7871 | /tensorflow/python/distribute/distribute_lib.py | 7143ac03aefc4db3e3611574944df01fe21f46e2 | [
"Apache-2.0"
] | permissive | TungJerry/tensorflow | d61de66c0667e5b6f6b7b2f75f4e695daed4ba1d | 64e362bb910e9121480cbdf27162968496533bcd | refs/heads/master | 2020-05-09T23:50:16.162568 | 2019-04-17T13:42:14 | 2019-04-17T13:42:14 | 181,513,750 | 0 | 0 | Apache-2.0 | 2019-04-15T15:18:55 | 2019-04-15T15:18:54 | null | UTF-8 | Python | false | false | 78,136 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
41894cbb7710b238975a5bb2d90f3de9766fabbc | 4d2bb970d9b4aa096272b67d952cfdd3b1e7f75a | /tests/problem_5/test_instances_independence.py | 98923b0e5297c156958a492ae2dbab46d8deabd8 | [] | no_license | ASU-CompMethodsPhysics-PHY494/activity_07_modules_classes | 101c99bc204d12ae3767df81983dadf50548a430 | 1878150fb0143be46fd963552fda2612798dd1d7 | refs/heads/main | 2023-03-02T19:38:43.542813 | 2021-02-09T18:29:14 | 2021-02-09T18:29:29 | 337,378,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
# ASSIGNMENT: Activity 07 (Modules and Classes)
# PROBLEM NUMBER: 5
# place as problem_x/test_name.py so that relative imports work
import pytest
from ..tst import _test_output, assert_python3
FILENAME = 'ball_oon.py'
POINTS = 4
def test_python3():
assert_python3()
def test_instances_i... | [
"orbeckst@gmail.com"
] | orbeckst@gmail.com |
34bc6b2db4ff6317b55d3a95d61ff2eadcad4727 | cd90bbc775cbce9a7e0bc46cbb9437e3961e587f | /python/audioscrob/query_lsi.py | 077cc9d863ff4cc547efc79886b630d9029e0755 | [] | no_license | llimllib/personal_code | 7b3f0483589e2928bf994184e3413f4b887e1f0c | 4d4662d53e0ac293dea8a4208ccca4a1f272e64a | refs/heads/master | 2023-09-05T04:02:05.075388 | 2023-09-01T12:34:09 | 2023-09-01T12:34:09 | 77,958 | 9 | 16 | null | 2023-08-16T13:54:39 | 2008-11-19T02:04:46 | HTML | UTF-8 | Python | false | false | 1,338 | py | #!/usr/bin/env python
import lsi, cPickle, sets, sys
import numarray as na
def load_svd(sfile, ufile, vfile):
"""loads dense svd files as output by svdlibc"""
n_s = int(sfile.readline())
S = na.zeros((n_s, n_s), type="Float32") #store S as a column vector
for i in range(n_s):
S[i,i] = ... | [
"llimllib@c4aad215-931b-0410-ba74-c4b90e0b6ad6"
] | llimllib@c4aad215-931b-0410-ba74-c4b90e0b6ad6 |
89be64832c01c67e3c3ac8db4c1d42f4569b7102 | 7673df8dec063e83aa01187d5a02ca8b4ac3761d | /Polymorphism_HTML_Generator.py | d73b1e74699692adb1c529c2946bae120b7142f4 | [] | no_license | jedthompson99/Python_Course | cc905b42a26a2aaf008ce5cb8aaaa6b3b66df61e | 618368390f8a7825459a20b4bc28e80c22da5dda | refs/heads/master | 2023-07-01T08:39:11.309175 | 2021-08-09T17:28:32 | 2021-08-09T17:28:32 | 361,793,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | class Html:
def __init__(self, content):
self.content = content
def render(self):
raise NotImplementedError('Subclass must implement render method')
class Heading(Html):
def render(self):
return f'<h1>{self.content}</h1>'
class Div(Html):
def render(self):
return f'<... | [
"jedthompson@gmail.com"
] | jedthompson@gmail.com |
44eed9d5f25a1a81fe6b5310bb1293b064ddbde9 | 7673b9c758f40ebdaa22efc22331f8169e763fc8 | /Game/jumpy.py | 8f5acec5772153c56d077a81f8e487038d22ac4f | [] | no_license | eduardogpg/jumpy_game | c47677a3c90ad4b58a2889067e4bfa9d29036a5a | 778cc75fbe94b706048af2e4480bfb9a87b6ae13 | refs/heads/master | 2020-04-02T00:24:50.137965 | 2018-10-20T01:39:30 | 2018-10-20T01:39:30 | 153,803,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py | from .settings import *
from .player import Player
from .platform import Platform
import random
import pygame
class Jumpy:
def __init__(self):
pygame.init()
pygame.mixer.init()
self.screen = pygame.display.set_mode( (WIDTH, HEIGHT ))
self.clock = pygame.time.Clock()
self.... | [
"eduardo78d@gmail.com"
] | eduardo78d@gmail.com |
27136f2514a2069bf36aef18602f4a632bd6304f | 3bcc247a2bc1e0720f0344c96f17aa50d4bcdf2d | /第一阶段笔记/程序/shebao.py | 19e17a28f27b34902da9e197bb5d7b5d8eb26429 | [] | no_license | qianpeng-shen/Study_notes | 6f77f21a53266476c3c81c9cf4762b2efbf821fa | 28fb9a1434899efc2d817ae47e94c31e40723d9c | refs/heads/master | 2021-08-16T19:12:57.926127 | 2021-07-06T03:22:05 | 2021-07-06T03:22:05 | 181,856,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py |
def shu():
print("0) 进入计算")
print("1) 退出计算")
def sum():
s=int(input("请输入你在北京的社保基数(3082~23118):"))
if 3082<= s <=23118:
gy=s*0.008
dy=s*0.19
gh=input("户口是否为城镇(yes/no):")
if gh=="yes" :
gs=s*0.002
ds=s*0.008
else :
gz=s*0
... | [
"shenqianpeng@chengfayun.com"
] | shenqianpeng@chengfayun.com |
2cd5f5426bc43a0bc84ccfce6ac8effb870a32ed | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/layout/scene/yaxis/_title.py | b63b7b0849f6244fbb62a192ed6748838f3e59d9 | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 981 | py | import _plotly_utils.basevalidators
class TitleValidator(_plotly_utils.basevalidators.TitleValidator):
def __init__(
self, plotly_name='title', parent_name='layout.scene.yaxis', **kwargs
):
super(TitleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=pare... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
d8ed3b3d2c655e907769e42ef9df45539f087ca7 | c105797a5b6f5aca0b892ccdadbb2697f80fb3ab | /python_base/base15/page/contact_add.py | 94bf9599ce701086eeef43402d08d559ca44f34c | [] | no_license | jj1165922611/SET_hogwarts | 6f987c4672bac88b021069c2f947ab5030c84982 | fbc8d7363af0a4ac732d603e2bead51c91b3f1f7 | refs/heads/master | 2023-01-31T19:41:27.525245 | 2020-12-15T13:43:45 | 2020-12-15T13:43:45 | 258,734,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020-08-19
# @Author : Joey Jiang
# @File : contact_add.py
# @Software : PyCharm
# @Description: 企业微信移动app实战
class ContactAddPage:
def set_name(self):
return self
def set_gender(self):
return self
def set_phonenum(se... | [
"1165922611@qq.com"
] | 1165922611@qq.com |
f281f525635636d1ed853611666a30eea9df78dc | 1edfe2fe5ae6ed81d1453446569b8fa594738cb9 | /vendor/migrations/0017_auto_20200406_2113.py | a0d6306cadabcc40cc07c28b526785d7c15dd750 | [] | no_license | parvatiandsons2/djangoproject | 71bfbcfa6b06406b8a77ebb30f7d468d787e92dd | 901062c839dde608d9c2c865b61dbc0902988e66 | refs/heads/master | 2022-04-28T21:53:17.333272 | 2020-04-16T12:26:29 | 2020-04-16T12:26:29 | 255,407,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # Generated by Django 3.0.3 on 2020-04-06 15:43
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vendor', '0016_auto_20200406_2027'),
]
operations = [
migrations.AlterField(
model_name='vendor',
na... | [
"parvatiandsons2@gmail.com"
] | parvatiandsons2@gmail.com |
98a41b81268bf6fd96b82174f324e081f5420c49 | 9dee94907e6456a4af9855d358693923c17b4e0d | /1036_Escape_a_Large_Maze.py | d1155bcc42a941421149dd5533ec39b085749b92 | [] | no_license | chien-wei/LeetCode | e215915a8103e56f182040dacc9fb0d6996c86ec | 0d6f414e7610fedb2ec4818ecf88d51aa69e1355 | refs/heads/master | 2021-05-13T14:48:22.891100 | 2019-08-20T05:52:59 | 2019-08-20T05:52:59 | 116,749,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | class Solution:
def isEscapePossible(self, blocked: List[List[int]], source: List[int], target: List[int]) -> bool:
# BFS
bound = 10 ** 6
step_left = len(blocked)
que = [source]
visited = set(tuple(source))
blocked = set(map(tuple, blocked))
while len... | [
"chien-wei@outlook.com"
] | chien-wei@outlook.com |
f09bf6f1c13f713d3ae632a2bac5619d968105f0 | 27044bb88c709e7ffa5278afc7c81f37e0b6e9e4 | /venv/lib/python3.10/site-packages/limits/util.py | aac992f9d82ff96b98ad45efc38a5290fff8abe0 | [] | no_license | mesaye85/organika_Inventory_project-with-React- | 48c93efb6aba64d5e9310c57e4c5a06d3f2cc502 | 6aa3d29e8be3e22b8dc9163d558cdcc8c9122fd1 | refs/heads/main | 2023-02-19T10:11:47.880754 | 2023-02-14T01:55:43 | 2023-02-14T01:55:43 | 298,101,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/c0/ef/cf/f8d41591c2913f5cd8bf1a175406fef83f5abc7f7e0fc5badd0d097ec9 | [
"67935330+mesaye85@users.noreply.github.com"
] | 67935330+mesaye85@users.noreply.github.com |
318e3a22ca315e332bb13cf86f2e9331d1697c4f | 35fe9e62ab96038705c3bd09147f17ca1225a84e | /a10_ansible/library/a10_gslb_template_csv.py | 4eb333f5ae97d6485bff24262930fdf421561269 | [] | no_license | bmeidell/a10-ansible | 6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668 | 25fdde8d83946dadf1d5b9cebd28bc49b75be94d | refs/heads/master | 2020-03-19T08:40:57.863038 | 2018-03-27T18:25:40 | 2018-03-27T18:25:40 | 136,226,910 | 0 | 0 | null | 2018-06-05T19:45:36 | 2018-06-05T19:45:36 | null | UTF-8 | Python | false | false | 6,209 | py | #!/usr/bin/python
REQUIRED_NOT_SET = (False, "One of ({}) must be set.")
REQUIRED_MUTEX = (False, "Only one of ({}) can be set.")
REQUIRED_VALID = (True, "")
DOCUMENTATION = """
module: a10_csv
description:
-
author: A10 Networks 2018
version_added: 1.8
options:
csv-name:
description:
... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
cc3001b5f98fde6bbf5d121e5284ec204d5992bc | d6c117812a618ff34055488337aaffea8cf81ca1 | /media/chordcalc/chordCalc/chordcalc.py | a339a2725d5e131ecf40bc9e6f75325af633c481 | [] | no_license | c0ns0le/Pythonista | 44829969f28783b040dd90b46d08c36cc7a1f590 | 4caba2d48508eafa2477370923e96132947d7b24 | refs/heads/master | 2023-01-21T19:44:28.968799 | 2016-04-01T22:34:04 | 2016-04-01T22:34:04 | 55,368,932 | 3 | 0 | null | 2023-01-22T01:26:07 | 2016-04-03T21:04:40 | Python | UTF-8 | Python | false | false | 56,436 | py | #!/usr/bin/python
"""
Chord Calculator
Version 0.3
Copyright (c) 28 Dec 2008, Gek S. Low
Modified to operate under Pythonista iOS ui environment
Copyright (c) August 19th, 2014 Steven K. Pollack
Free for personal use. All other rights reserved.
USE AT YOUR OWN RISK!
This software is provided AS IS and does not make ... | [
"itdamdouni@gmail.com"
] | itdamdouni@gmail.com |
1460403fb6662ccb9d67270d07b13766e1ac0c6b | 87f574548a321a668f325bc3d120a45366b0b76b | /studioadmin/views/ticketed_events.py | 7d8e2f826a36d26a114b9d940c13ede8672c40b3 | [] | no_license | judy2k/pipsevents | 1d19fb4c07e4a94d285e6b633e6ae013da0d1efd | 88b6ca7bb64b0bbbbc66d85d2fa9e975b1bd3081 | refs/heads/master | 2021-01-14T11:11:26.616532 | 2016-10-07T20:47:39 | 2016-10-07T20:55:13 | 36,600,721 | 0 | 0 | null | 2015-05-31T11:51:14 | 2015-05-31T11:51:14 | null | UTF-8 | Python | false | false | 33,116 | py | # -*- coding: utf-8 -*-
import logging
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.template.loader import get_template
from django.template.response import TemplateResponse
from ... | [
"rebkwok@gmail.com"
] | rebkwok@gmail.com |
5392d476cc5dbf1251c2f97ab77785c857c4811f | 7e62c0c2572ca586e37ba754bccb6c231e08bc1e | /beartype/_decor/_code/_pep/_error/_peperrorgeneric.py | b6916fe1b62384d10135143fae4445f4e6fc040a | [
"MIT"
] | permissive | vault-the/beartype | 1a456ae18fc3814a19d3c1505ecba19e309ce57e | 36ab39df2a7a89ae52c8016c4226c8aa582b390a | refs/heads/master | 2023-02-03T19:39:49.061471 | 2020-12-23T04:57:13 | 2020-12-23T04:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,870 | py | #!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2020 Cecil Curry.
# See "LICENSE" for further details.
'''
**Beartype PEP-compliant type hint call-time utilities** (i.e., callables
operating on PEP-compliant type hints intended to be called by... | [
"leycec@gmail.com"
] | leycec@gmail.com |
4e24d5ca8043193ed1a0a31cfc08eca50d55b164 | a9cd0f58ff76ab4b1c65847247fa212b7375f2db | /app/comments/forms.py | 9bbc80888868e54fb548094a9f2718ed27689c4a | [] | no_license | wisnercelucus/ls-sms-saas-advance | 11c32bebba2498653b465b405bcdeaf71804df4c | d465939e11a9461e4425b67dc8be0f9da22bb1a8 | refs/heads/master | 2022-06-29T04:06:50.814004 | 2020-05-09T17:27:50 | 2020-05-09T17:27:50 | 260,078,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from django import forms
class CommentForm(forms.Form):
content_type = forms.CharField(widget=forms.HiddenInput)
object_id = forms.IntegerField(widget=forms.HiddenInput)
#parent_id = forms.IntegerField(widget=forms.HiddenInput)
content = forms.CharField(widget=forms.Textarea)
| [
"wisnercelicus@gmail.com"
] | wisnercelicus@gmail.com |
3a6a8467aeb29d16bfa252404455c2a04d8f4e78 | c71e5115b895065d2abe4120799ffc28fa729086 | /procon-archive/atcoder.jp/abc146/abc146_b/Main.py | 054237241e3d8734442171d9aa60b29b6b5ce2af | [] | no_license | ken0105/competitive-programming | eb82f92a7b7ad0db601ea341c1441de6c6165064 | f918f85a0ea6dfbe9cac3ef835f80503bb16a75d | refs/heads/master | 2023-06-05T09:55:25.264731 | 2021-06-29T14:38:20 | 2021-06-29T14:38:20 | 328,328,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import math
from decimal import *
import numpy as np
from collections import deque, Counter
import itertools
if __name__ == '__main__':
n = int(input())
s = list(input())
for i in range(len(s)):
if ord(s[i]) + n > ord("Z"):
s[i] = chr(ord(s[i]) + n - 26)
else:
s[i] =... | [
"iwata.kenaaa@gmail.com"
] | iwata.kenaaa@gmail.com |
84c2a73d627af1a58600196031656c814c3d5ccc | 519a83bc0eb1324115ab837fe1fa7a452ea74672 | /data/new_card_loc.py | c8fd2a1e36754626008dc7f13c14617a3ebc5dc8 | [] | no_license | JalexDooo/SoftwareCUP2019 | f0a07dc32eee1c3346f1816c7cb307624c70fbcd | 4ff3920b408c56a8ca3a9541daf675d04d84207e | refs/heads/master | 2020-05-27T19:39:49.789445 | 2019-06-03T08:17:06 | 2019-06-03T08:17:06 | 188,762,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,102 | py | import cv2
import numpy as np
import math
import sys
# ACE算法
def stretchImage(data, s=0.005, bins=2000): # 线性拉伸,去掉最大最小0.5%的像素值,然后线性拉伸至[0,1]
ht = np.histogram(data, bins);
d = np.cumsum(ht[0]) / float(data.size)
lmin = 0;
lmax = bins - 1
while lmin < bins:
if d[lmin] >= s:
... | [
"393351322@qq.com"
] | 393351322@qq.com |
96f1ce56d7dcad95aca5eb6112b0bc3da040a31b | 2b07665c5c6a84c2604f97f85adff6976d6b01fb | /txgsm/protocol.py | 6c1ac70f988567dc0442ba3e83c3a447da3fecca | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | smn/txgsm | f3259d7345752f2c0d8194331dd53e0f536ef9a1 | 5ee35ee4dc8dec40a6bc2023744e7c8745e38c1d | refs/heads/develop | 2020-04-06T03:33:53.444260 | 2017-01-24T03:40:11 | 2017-01-24T03:40:11 | 10,579,937 | 12 | 7 | BSD-3-Clause | 2023-06-19T17:44:28 | 2013-06-09T07:31:48 | Python | UTF-8 | Python | false | false | 4,396 | py | # -*- test-case-name: txgsm.tests.test_protocol -*-
# -*- coding: utf-8 -*-
from twisted.internet import reactor
from twisted.protocols.basic import LineReceiver
from twisted.internet.defer import Deferred
from twisted.python import log
from .utils import quote
from messaging.sms import SmsSubmit, SmsDeliver
class ... | [
"simon@praekeltfoundation.org"
] | simon@praekeltfoundation.org |
7fae1b15f91d81ef695953a46a052ab14d943d09 | 33f1c49920201e21adaf794c826148d0330db4a1 | /python/dp/117_jump_game_ii.py | 0d49f27baf32e21c3532cd563d068cc8d4110369 | [] | no_license | zsmountain/lintcode | 18767289566ccef84f9b32fbf50f16b2a4bf3b21 | 09e53dbcf3b3dc2b51dfb343bf77799632efd219 | refs/heads/master | 2020-04-04T21:35:07.740575 | 2019-03-16T20:43:31 | 2019-03-16T20:43:31 | 156,291,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | '''
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of jumps.
Have you met this question in a real interview?
Example
Giv... | [
"zsmountain27@gmail.com"
] | zsmountain27@gmail.com |
9b07c8deaf09327871b26d7ff2963b55c3a77696 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/layout/radialaxis/_ticksuffix.py | 40442b42e7ab24400f454a332668a7cb1cdd3b92 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 455 | py | import _plotly_utils.basevalidators
class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='ticksuffix',
parent_name='layout.radialaxis',
**kwargs
):
super(TicksuffixValidator, self).__init__(
plotly_name=pl... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
6fa2530c5ef358c0adaa6cec3b04535da0452154 | 486820178701ecb337f72fd00cd2e281c1f3bbb2 | /teuthology_master/virtualenv/bin/dynamodb_dump | 98f14105e218197be6337df38abe6ff012ad3e47 | [
"MIT"
] | permissive | hgichon/anycloud-test | 9e0161bc563a20bd048ecff57ad7bf72dcb1d420 | 0d4cd18d8b6bb4dcf1b59861fea21fefe6a2c922 | refs/heads/master | 2016-09-11T09:32:23.832032 | 2015-06-24T00:58:19 | 2015-06-24T00:58:19 | 35,654,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | #!/home/teuthworker/src/teuthology_master/virtualenv/bin/python
import argparse
import errno
import os
import boto
from boto.compat import json
DESCRIPTION = """Dump the contents of one or more DynamoDB tables to the local filesystem.
Each table is dumped into two files:
- {table_name}.metadata stores the table'... | [
"hgichon@gmail.com"
] | hgichon@gmail.com | |
c0ffe136fb21ccfde99bf631f6ac8b64fa28cc7b | b027bb7d56ddde072aac411365d2c39d1f798fdb | /fig5.py | 8add7894b9423b66cfb3fe611bfb9918a63c6082 | [] | no_license | ModelDBRepository/185355 | 36d96a7246b0890295bfacd8bcb8849b9d51008d | 3f9dcaa5cdf43ab6a45e3ad5c988268abc6434bc | refs/heads/master | 2022-08-09T20:16:09.371047 | 2022-05-27T15:49:36 | 2022-05-27T15:49:36 | 189,301,388 | 0 | 2 | null | 2022-04-11T20:26:13 | 2019-05-29T21:26:20 | AMPL | UTF-8 | Python | false | false | 625 | py | ### Analysis of DG network data ###
# This Python code creates a scatter plot of output vs input sim scores.
# Enter the idname
# ModelDB file along with publication:
# Yim MY, Hanuschkin A, Wolfart J (2015) Hippocampus 25:297-308.
# http://onlinelibrary.wiley.com/doi/10.1002/hipo.22373/abstract
# modified and augmen... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
836ef21d26e7b5dc95fd5d5535b8894dc9071f69 | e43992fc43701df30b75002831265b19fae13f21 | /code_examples/popart/block_sparse/examples/mnist/conftest.py | 10e2b38ba57646650051b8684c2a4b6ded8558c9 | [
"MIT"
] | permissive | techthiyanes/examples | 9e6143f4e6efb935d7d20588f25dd50bf457ccea | 788ead557c9d9eaee1cea7fea516696b188eb841 | refs/heads/master | 2023-07-08T07:16:00.843617 | 2021-08-18T13:49:48 | 2021-08-18T13:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Copyright (c) 2020 Graphcore Ltd. All rights reserved.
import os
import sys
from common import download_mnist
parent_dir = os.path.join(os.path.dirname(__file__), "..")
sys.path.append(parent_dir)
from utils import build_custom_ops
so_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
... | [
"philb@graphcore.ai"
] | philb@graphcore.ai |
a50de666aea61cb5d6e800f794145d0e6e72e32d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1482494_0/Python/shaunren/p2.py | d02d16128d891683e70cb0b44749866b7904ca3e | [] | 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 | 1,011 | py | #!/usr/bin/env python
t = int(input())
for case in range(1,t+1):
n = int(input())
lvls = []
played = [[False,False] for _ in range(n)]
for i in range(n):
a,b = map(int,input().strip().split())
lvls.append((b,a,i))
lvls.sort()
total = 0
stars = 0
while len(lvls):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
2d91807e31b824977c4bf1eda9a9b45d449db26e | 82c6dedfe9040b453c22c3f93f1a2c9a922c988b | /ClusterFind/bin/kmeans.py | aceb7d3733c898dbd5109e20409d6271fe2fcc57 | [] | no_license | njcuk9999/g_clustering | 8d34439fd78ef7017c0414c932d21cd19fc6551c | 20e6a6ab17c72c5652ae33125f7dabf4131aa8d5 | refs/heads/master | 2021-05-11T16:10:41.382938 | 2018-05-08T22:55:03 | 2018-05-08T22:55:03 | 117,753,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,548 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2018-01-16 at 14:13
@author: cook
Version 0.0.0
"""
import numpy as np
from astropy.table import Table
from sklearn.cluster import KMeans
import random
import matplotlib.pyplot as plt
import time
# ===========... | [
"neil.james.cook@gmail.com"
] | neil.james.cook@gmail.com |
f79aa18cce93645b6994ba54e85405c605a5482f | d0609d9d508a9bfbcd0f43d43a10fbfda2e5b7cf | /sparse_coding/gpu/ke_sparse_coding_pytorch/EE290T_quantized_sparse_codes/analysis_transforms/ista.py | 867c2e3ab570b26ed32aa17763182c154c2765ec | [
"BSD-3-Clause"
] | permissive | csinva/dnn-experiments | cf66579d282c0cbbadc1a84333f88b9a55b4e8ba | 5b418cb125c4eb0b510925c7a70fd87ce5978841 | refs/heads/master | 2021-07-11T00:40:30.237545 | 2020-06-13T22:39:36 | 2020-06-13T22:39:36 | 143,078,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | """
Implementation of Iterative Soft Thresholding
"""
import torch
from torch.autograd import Variable
def run(images, dictionary, sparsity_weight, max_num_iters,
convergence_epsilon=1e-3, nonnegative_only=False):
"""
Runs steps of Iterative Soft Thresholding w/ constant stepsize
Termination is at the s... | [
"chandan_singh@berkeley.edu"
] | chandan_singh@berkeley.edu |
4b72e132593b28e159d0b3e0f261b5b0eeb0271c | 2abfbb36a9782c7c3835d22432c4e6bf7486a5a2 | /K-means_with_SciPy/K_means_with_SciPy.py | 9bde6a4160f6e7edfaff39be5374c9600634f9e5 | [] | no_license | iamraufodilov/K-means_with_SciPy | a679d3f4aaf72cd1ca420c4de6f7477af7f3a3e3 | 7db3cfa4cd56d2bf139337bf7e70d6d9aa7a45cf | refs/heads/master | 2023-03-19T19:40:03.929650 | 2021-03-09T07:40:55 | 2021-03-09T07:40:55 | 345,922,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #import k means
from scipy.cluster.vq import kmeans, vq, whiten
#data generation
from numpy import vstack, array
from numpy.random import rand
#data generating with three feature
data = vstack((rand(100, 3) + array([.5,.5,.5]), rand(100, 3)))
#whiten the data
data = whiten(data)
#compute kmeans with three cluster
c... | [
"applyjobrauf@gmail.com"
] | applyjobrauf@gmail.com |
b6841fc285b38e52d887a65af68e3677455bcc61 | 25613ba34d077a6b4e328dd81cb60a597e62d0fb | /ajaxify/migrations/0001_initial.py | a5e5bde19359d898115118bf797942b9f613bacb | [] | no_license | MahfuzKhandaker/ajaxdjango | 9e10fa2f18d71f0088bf9f5db6c499f07f320b34 | 30aa417bb6a1e7a9c357e8e56bf31a514668ceb6 | refs/heads/main | 2023-04-11T10:11:41.076493 | 2021-04-09T14:45:03 | 2021-04-09T14:45:03 | 354,635,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | # Generated by Django 3.2 on 2021-04-07 16:52
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Crea... | [
"mahfuzkhandaker.bd@gmail.com"
] | mahfuzkhandaker.bd@gmail.com |
fa661c972e6cd81e2c986a4296ea8db331623533 | 98afa7053fc691d833e8981f59aa210c198cb72f | /python_isz_test/iszErpRequest/residentialRequest.py | 243f520751e90cb5589d1d0a641e2cf1128a5a28 | [] | no_license | zhonglinglong/pyqt5_demo | 4abd1618f38f32875c52426e1af97b9e935ca7b4 | b4f109a5a025f70940c3707a1e16881ef72c4b41 | refs/heads/master | 2020-04-19T02:38:19.270131 | 2019-01-28T06:27:58 | 2019-01-28T06:27:58 | 167,909,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,945 | py | # -*- coding:utf8 -*-
"""
楼盘模块接口
2018年5月26日14:33:54
"""
__auto__ = 'zhonglinglong'
from classDemo.myRequest import NewRequest
from common import base
from iszErpRequest import loginRequest
class Residential():
def __init__(self,residential_name,building_name,unit_name,floor_name,house_no,house_no_number):
... | [
"125772195@qq.com"
] | 125772195@qq.com |
aae73de91c7205183a32a3ab0bcfc068e0f142e2 | 86871876283b07e4308d716060ed5908f54da785 | /backend/users/models.py | 4d99f970a7195e864f7c0e6c1c62d144a325e7c2 | [] | no_license | crowdbotics-apps/mobile-200-dev-7931 | 1183dfca569b6a504824aa499c5edd1cdce9af34 | b9f81e49911198521f0eeab348d92664d7dad120 | refs/heads/master | 2022-11-24T12:09:29.874411 | 2020-07-20T13:57:30 | 2020-07-20T13:57:30 | 281,034,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
class User(AbstractUser):
name = models.CharField(null=True, blank=True, max_length=255,)
def get_absolute_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
851f2c3f7e9147e6c23df8791eb95178ec34f663 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/393/usersdata/315/72418/submittedfiles/swamee.py | 704a1282b6dfccfa9f3dcbbd59c0779bee531c42 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
# CONSTANTES
g = 9.81
e = 0.000002
#ENTRADAS
f = float(input('Digite valor de f: '))
L = float(input('Digite valor de L: '))
Q = float(input('Digite valor de Q: '))
DH = float(input('Digite valor de DH: '))
v = float(input('Digite valor de v: '))
#FORMULA P... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9e39d28f27026a466e6195157821578973cf2da3 | 90ec137d760e2c5f094e82f0f4456c04f5ac98dc | /tests/__init__.py | b1f3643451e167af86f2c62ca6facca8bbdd373c | [] | no_license | d0nin380/big-brother-bot | 8adc5d35e37e6eb9f6b67e431072e596a24211ef | 949aa0b0c82658795eea43474d220bfbaaba861f | refs/heads/master | 2021-01-18T04:33:19.093850 | 2013-03-25T02:34:59 | 2013-03-25T02:34:59 | 8,996,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | #
# BigBrotherBot(B3) (www.bigbrotherbot.net)
# Copyright (C) 2011 Courgette
#
# This program 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 2 of the License, or
# (at your option) any later v... | [
"courgette@bigbrotherbot.net"
] | courgette@bigbrotherbot.net |
2e6152619157902ae4f10b42bf7c492e71fe6ebb | 449462388d7f0375c52009ec7420a6096a4b87f9 | /pynodes/serial_joy_to_servo.py | 8337f9eef3bfafc20330ae8ed5831ec48e4cba70 | [] | no_license | amlalejini/misc_arduino_ros_examples | 498a35a824e75bb63d73279a3765a2883056b935 | f5d4ceab10028bdbeff54b048c255ece42cf3255 | refs/heads/master | 2016-08-12T05:39:00.904919 | 2016-01-10T01:53:19 | 2016-01-10T01:53:19 | 49,342,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,204 | py | #!/usr/bin/python
import rospy, serial, atexit
from sensor_msgs.msg import Joy
'''
This node interfaces with an arduino programmed with the servo_control_example code.
Input is received from joy node.
Serial servo command packet format: label:value\n
'''
###################################
# Controller mappings in... | [
"amlalejini@gmail.com"
] | amlalejini@gmail.com |
41117c486c96cbc1a0b8327e00987380acb66a43 | 7a755ea07e20f238d171d0a00fae10c03c7fb873 | /plfit/plfit.py | fcfb89053086b20a7cab3b3807df4e1137583ec4 | [
"MIT"
] | permissive | tbowers7/plfit | 14bedc6af0d62e70b201d3047d84b99a33b744cb | 37c831d674927cfde9c7e9e85623cd7bd056b950 | refs/heads/master | 2020-05-20T19:29:30.715766 | 2014-02-05T20:20:15 | 2014-02-05T20:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,899 | py | # -*- coding: latin-1 -*-
#
# intended to implement a power-law fitting routine as specified in.....
# http://www.santafe.edu/~aaronc/powerlaws/
#
# The MLE for the power-law alpha is very easy to derive given knowledge
# of the lowest value at which a power law holds, but that point is
# difficult to derive and must... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
cee4566eaf5c52bb29eeb8f049801d51d3a0b241 | e82245a9e623ef3e2b4b9c02f0fd932c608c4484 | /f00b4r.w1thg00g13.com/07-lvl4-1 unsolved/exploration.py | 761bb51fd2d0e68a2b531fd1d395ef3b782162f0 | [] | no_license | Zylophone/Programming-for-Sport | 33e8161028cfddce3b7a1243eb092070107342e3 | 193d6184f939303d8661f68d6fd06bdec95df351 | refs/heads/master | 2020-06-16T23:11:44.719286 | 2017-05-21T17:10:46 | 2017-05-21T17:10:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,011 | py | n = 250
zeros, ones, twos, threes = [], [], [], []
for i in range(n):
ones.append(4*i + 1)
twos.append(4*i + 2)
threes.append(4*i + 3)
zeros.append(4*i + 4)
def inf_loop(pair):
pairs_observed = set()
return _inf_loop(pair, pairs_observed)
def _inf_loop(pair, pairs_observed):
a, ... | [
"jfv33@cornell.edu"
] | jfv33@cornell.edu |
fc369735b944f095d0fc4cbbf3541dab7e931089 | faf489dd4c2bd7cdf4f9e6a9cbfd6f0484fd873c | /posts/migrations/0001_initial.py | 911afc61a746f92d9a3b2f73986c9064559bdc7b | [] | no_license | liangsongyou/mb-app | cf262b0a472ee8d7ec838c92bde2672979e4cb84 | bca84e74bd99280a3d574f6cba15e7faf7930394 | refs/heads/master | 2020-04-11T07:28:24.844678 | 2018-12-13T09:08:32 | 2018-12-13T09:08:32 | 161,611,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # Generated by Django 2.1.4 on 2018-12-13 07:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(aut... | [
"yuebei58@gmail.com"
] | yuebei58@gmail.com |
ee818a9519f21d4bcc71bda874a90330f47b83f3 | 61c1e9dd24c0564ff18d7ecab5bb12de95244c8c | /py_src/cmsproject/settings/production.py | 44be04ba67a6687d22b4bdcc9e86f70eadf98a36 | [] | no_license | divio/djangocms-project | 3512e24bec9a8582a10f5c321dc066104519a9d1 | 0d96af52d34eadc75ecc1e7188cd5748fde90cf6 | refs/heads/master | 2023-03-25T10:44:53.753082 | 2010-02-06T17:56:27 | 2010-02-06T17:56:27 | 504,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from cmsproject.settings.base import *
#CACHE_BACKEND = 'memcached://127.0.0.1:11211/?timeout=300&max_entries=300'
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'cmsproject_live'
DATABASE_USER = 'root'
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''
| [
"stefan.foulis@gmail.com"
] | stefan.foulis@gmail.com |
3b48cbc5aa92b06c6f38893a786488fc9d7df0b4 | 22c060f4be02fbacfa7503f8d2433be9f0454114 | /venv/lib/python3.6/site-packages/werkzeug/security.py | 3bbe1087f1970b89b77aed5f68f2e8c0aea2b67c | [] | no_license | doorknob88/cmpe273assignment1 | 3ba2c72614723a69abb8ab3a9cdb62a5fb2456d0 | 600879aaccabcd2153d17c754b0097d4eac93c1f | refs/heads/master | 2021-08-31T04:03:55.841038 | 2017-12-20T09:15:28 | 2017-12-20T09:15:28 | 107,230,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,223 | py | # -*- coding: utf-8 -*-
"""
werkzeug.security
~~~~~~~~~~~~~~~~~
Security related helpers such as secure password hashing tools.
:copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import codecs
import hashlib
import hmac
import ... | [
"doorknob88@gmail.com"
] | doorknob88@gmail.com |
14fea32e585e79eff24b8aacecd8ad5193947a22 | 7e0ecd477d7fce0fb927a2d4870e805c181687d8 | /markov.py | b2e6693cc4dd049a0b3a493111edf2d38dddcbeb | [] | no_license | carly/Markov-Chains2 | 9b4e28a9b9c2382453ac98845aed4c58c2307ee9 | 0c4286539b8ca873b8f97026adadc3cfa22bbca5 | refs/heads/master | 2021-01-17T14:38:45.348305 | 2015-07-10T01:00:56 | 2015-07-10T01:00:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | import sys
from random import choice
class SimpleMarkovGenerator(object):
def read_files(self, the_file1, the_file2):
"""Given a list of files, make chains from them."""
file_object1 = open(the_file1)
all_text1 = file_object1.read()
corpus_text1 = all_text1.replace("\n", " ").spl... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
b2c67ba6d1cd48a3d2211295566172a3171a6d3a | 788db9a7ad4c6b17504e42506aed5fcad0fad082 | /src/silva/app/news/tests/test_news_item.py | 3faf4c5588e1767e3704c85a1eded9932da941d1 | [] | no_license | silvacms/silva.app.news | 16ca2b32e80a11f1cd5f2399abcb814596ed6c2b | 68593c75600de0fa73e23f2b4e4d4a0dafec469d | refs/heads/master | 2016-09-05T20:22:30.118393 | 2014-01-07T14:13:16 | 2014-01-07T14:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2013 Infrae. All rights reserved.
# See also LICENSE.txt
import unittest
from zope.interface.verify import verifyObject
from Products.Silva.ftesting import public_settings
from Products.Silva.testing import tests
from silva.core.interfaces import IPublicationWorkflow
fro... | [
"thefunny@gmail.com"
] | thefunny@gmail.com |
5dae99fc6af92568b0a1c6875e97bc3c8d56929a | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Binary Search/median_of_two_sorted_arrays.py | 72dd35967b478a4ed531e152475a1dd5d00d434f | [] | 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 | 1,208 | py | class Solution:
def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float:
if len(nums1) > len(nums2):
nums1, nums2 = nums2, nums1
x, y = len(nums1), len(nums2)
low, high = 0, x
half_len = (x + y + 1) // 2
is_even = ((x + y) % 2) == 0
... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
38f0d76a284d07fb867464b3301d11b4a96466d9 | 66c6e36b3cbaaa459107555d3081798b9cf7a2f7 | /tests/profiling/sim_loop.py | adac5299d824f1cb2752614d133223c2ffad28d4 | [
"MIT"
] | permissive | QDevil/pygears | 6a68fc0cc52899573432082aaf5b9c0853f0b6f6 | a0b21d445e1d5c89ad66751447b8253536b835ee | refs/heads/master | 2023-08-25T18:41:44.583627 | 2021-03-25T14:37:06 | 2021-03-25T14:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | import time
import cProfile, pstats, io
from pygears import gear
from pygears.typing import Uint
from pygears.lib.verif import drv
# from pygears.sim import sim
from pygears.sim.extens.sim_extend import SimExtend
from pygears.lib import shred
class Profiler(SimExtend):
def before_run(self, sim):
self.pr =... | [
"bogdan.vukobratovic@gmail.com"
] | bogdan.vukobratovic@gmail.com |
1be869fa6b09f3d9ab72d0db1f311ba2d6f9bf51 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /build/run_swarming_xcode_install.py | 1ed09263ff18e3307064dad18b376118ee47d89b | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 3,039 | py | #!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script runs swarming_xcode_install on the bots. It should be run when we
need to upgrade all the swarming testers. It:
1) ... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
b60b1c17fd9e6efd248f0ec6e7101791edaea616 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /bPHcgMpkf9WvbwbAo_16.py | e3ee1ef2e9f9ac6249647b44c3785160de4b99e2 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py |
def format_phone_number(lst):
lst = ''.join(map(str,lst))
return '({}) {}-{}'.format(lst[:3],lst[3:6],lst[-4:])
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a313c2175bade44a9f2c9642aa13988f52b4a8fe | 3b8387d770b33850dca55a1f0657167906697b5b | /Factor_Combinations.py | 113656a0a6e3478216de6109ccfc39794fd585e3 | [] | no_license | BigZihao/Leetcode | fe2795d5485e4780c1ec79558eaf9017a830a516 | 95ec42c241a4815a8b35f7a71948f1bc4e58b5b3 | refs/heads/master | 2021-01-13T00:59:12.489768 | 2018-06-21T21:50:33 | 2018-06-21T21:50:33 | 48,407,360 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | class Solution(object):
def getFactors(self, n):
"""
:type n: int
:rtype: List[List[int]]
"""
res = []
nums = [i for i in range(2, n//2+1)]
self.dfs(nums, 0, float(n), [], res)
if res == [[]]:
res = []
return res
def dfs(se... | [
"zihao.zhang.ustb@gmail.com"
] | zihao.zhang.ustb@gmail.com |
1598936dc8479a3f9ecd68b720945576f02d6209 | 75cf6a9fd035883b64ca2309382e0178cf370b43 | /Empirical/python/sklearn/zdivers/benchmarks/bench_random_projections.py | e36690c4ed4a35e2205c1c846e1c063ff09a7957 | [] | no_license | ygtfrdes/Program | 171b95b9f32a105185a7bf8ec6c8c1ca9d1eda9d | 1c1e30230f0df50733b160ca73510c41d777edb9 | refs/heads/master | 2022-10-08T13:13:17.861152 | 2019-11-06T04:53:27 | 2019-11-06T04:53:27 | 219,560,170 | 1 | 2 | null | 2022-09-30T19:51:17 | 2019-11-04T17:39:52 | HTML | UTF-8 | Python | false | false | 8,799 | py | #!/usr/bin/python
"""
===========================
Random projection benchmark
===========================
Benchmarks for random projections.
"""
import gc
import sys
import optparse
from datetime import datetime
import collections
import numpy as np
import scipy.sparse as sp
from sklearn import clone
from sklearn.r... | [
"githubfortyuds@gmail.com"
] | githubfortyuds@gmail.com |
04933053c52cb7e8eda097638de38731cb3f1993 | 0ceae32211da4de1e608bb6269d2e0d2962aeb70 | /.history/mysite/settings_20201102005220.py | 666127312a85102fc941b14a320c93354686908e | [] | no_license | FerValenzuela-ops/Prueba2 | ae5772ed7fde2ce2ae47af225d52d014c2c49c73 | e691341651e2674fb49d43dea9cb64f132708edc | refs/heads/main | 2023-01-13T06:50:36.614129 | 2020-11-20T22:13:47 | 2020-11-20T22:13:47 | 309,217,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,618 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.16.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"fernandox_240997@live.com"
] | fernandox_240997@live.com |
35e3759f615ac99fc0dca8a69d97b73456ff6f32 | 460f9de13a84568e52ce58ffcf821f1282c698b3 | /backend/manage.py | 4869aa980eb56d1d9b3191ec9d90c145b4ba48a4 | [] | no_license | crowdbotics-apps/second-25223 | a7cab9126993b844071acb7f25e5d94a31643260 | e375f85353a3b6abfc9d618b072781e83f9b9084 | refs/heads/master | 2023-03-23T15:58:30.800438 | 2021-03-23T20:38:26 | 2021-03-23T20:38:26 | 350,850,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'second_25223.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
582c3c84ae43f842f0607a0900adfab8e744293c | dc1621e79c3021c54b00160c6f45946b4878c686 | /application/apps/cms/migrations/0003_auto__del_slidertext__add_field_sliderpage_body_en__add_field_sliderpa.py | 064a35ee3d38de2d46a16b771ec0a8de74b90efd | [] | no_license | hayk912/bidpart | 1aa8f3e7f8a8e71970d9c473db5cd55643f487d0 | a015e821cfc2a98ba51815112b2181f9bea925ee | refs/heads/master | 2020-05-24T12:53:51.613791 | 2015-07-17T10:06:15 | 2015-07-17T10:06:15 | 39,006,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,438 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'SliderText'
db.delete_table('cms_slidertext')
# Adding field 'SliderPage.body_en'... | [
"haykhovh07@gmail.com"
] | haykhovh07@gmail.com |
962a8952ba7841befd146ff48851cc417327d007 | dce4a52986ddccea91fbf937bd89e0ae00b9d046 | /jni-build/jni-build/jni/include/tensorflow/python/framework/proto_test.py | 8927226525952007c0ba44f63b86db7cf37ab223 | [
"MIT"
] | permissive | Lab603/PicEncyclopedias | 54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6 | 6d39eeb66c63a6f0f7895befc588c9eb1dd105f9 | refs/heads/master | 2022-11-11T13:35:32.781340 | 2018-03-15T05:53:07 | 2018-03-15T05:53:07 | 103,941,664 | 6 | 3 | MIT | 2022-10-28T05:31:37 | 2017-09-18T13:20:47 | C++ | UTF-8 | Python | false | false | 1,582 | 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 applica... | [
"super_mr.z@hotmail.comm"
] | super_mr.z@hotmail.comm |
22fca0ef459822f0b7eae711b110144809c43020 | 01301e5f486883865e3696f38ef913a232958343 | /antlir/website/gen/bzldoc.py | ff393ff286b32e61f2effacc831ea23092a6c786 | [
"MIT"
] | permissive | SaurabhAgarwala/antlir | 85fb09c87dafde56622b4107224b41f873f66442 | d9513d35d3eaa9d28717a40057a14d099c6ec775 | refs/heads/main | 2023-06-25T09:05:30.619684 | 2021-07-01T23:04:57 | 2021-07-01T23:06:11 | 382,355,446 | 0 | 0 | MIT | 2021-07-02T13:30:39 | 2021-07-02T13:30:39 | null | UTF-8 | Python | false | false | 7,319 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
bzldoc.py is a simple documentation extractor that parses docstrings out of
.bzl files and converts them to .md
bz... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7f68f4b2dd46edb14a69e4948f9ec8279763a50b | 7511b3c0b9e2c3cab730bd92e507425aba71986e | /djangostock/stocks/stocks/settings.py | 7f33735dd43e84c516fc36f7f5d814c8e22c92b9 | [] | no_license | kshitij-18/DjangoProjects | 8108f73cb43321eb03a43fa81750bea3b91bd306 | b4f05cb347322fd4af5ff7be8693d4995fd92154 | refs/heads/master | 2022-12-26T18:27:05.636040 | 2020-10-08T17:14:51 | 2020-10-08T17:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | """
Django settings for stocks project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"titas.sarker1234@gmail.com"
] | titas.sarker1234@gmail.com |
4e65d163b57b10fbb70090595ebf1348571d03e6 | f13a87557dcdcb8d88811369697cf81318c4a9f0 | /official/nlp/modeling/layers/pack_optimization.py | a472527931fc4f7174435057238e770d40467e6a | [
"Apache-2.0"
] | permissive | zhangxiaoli73/models | ac3d0a2174d4c9b3092fbc62f8031b3180984b17 | a6357413f1d86b0e35a97527c8f00a8e8125d099 | refs/heads/master | 2023-07-21T01:44:41.764321 | 2022-07-27T00:49:36 | 2022-07-27T00:50:34 | 101,380,725 | 1 | 1 | NOASSERTION | 2023-03-16T09:27:45 | 2017-08-25T07:59:20 | Python | UTF-8 | Python | false | false | 10,999 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
30d062eb92268c2c0fb2038659b8c53a27bb402e | 823b75a3a6a99870a19d666cdad829763077e532 | /16_fastx_grep/tests/fastx_grep_test.py | d33f976fa4c3332c7dd0e6396da09d48f07628ad | [
"MIT"
] | permissive | christophergaughan/biofx_python | acf79d39bb111781980929dbe51f6c3b230618d5 | b0fe2363ac08e9287bf8648cc41b1f7f0b518383 | refs/heads/main | 2023-03-01T06:24:53.968445 | 2021-02-11T17:16:34 | 2021-02-11T17:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,297 | py | """ Tests for fastx_grep.py """
import os
import platform
import random
import string
import re
from subprocess import getstatusoutput
from typing import List
PRG = './fastx_grep.py'
RUN = f'python {PRG}' if platform.system() == 'Windows' else PRG
EMPTY = './tests/inputs/empty.fa'
LSU = './tests/inputs/lsu.fq'
LSU_FA... | [
"kyclark@gmail.com"
] | kyclark@gmail.com |
89b3be8041a4e89f2350c45e19f729337cd023eb | 3fe79c252d953769cedf7558b139bbd0de26d24e | /virtual/bin/flask | c10df6303815cf3cdbe9366f619f03c622fd9553 | [
"MIT"
] | permissive | petermirithu/Pitch_web_App | e772b9b8257385f0edd557bb343370eae47a41ba | 21cd116dccfefd5bfca40ca2cf3df0b326d19adb | refs/heads/master | 2022-09-30T05:55:36.067552 | 2019-11-26T08:57:16 | 2019-11-26T08:57:16 | 223,375,308 | 0 | 1 | MIT | 2022-09-16T18:13:27 | 2019-11-22T10:00:55 | Python | UTF-8 | Python | false | false | 243 | #!/home/pyra/Core/pitch_app/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pyra_m.k@yahoo.com"
] | pyra_m.k@yahoo.com | |
9ec902f3250fb4d54eabb913287fd11ed726e518 | 3fb279aebc3dabdbf23b215033166880b2deb11a | /core/migrations/0001_initial.py | 9f8a4bc82a9f2110e572aa844bb89825974085f4 | [] | no_license | kurisukri/CousinsDjango | 8139ad692ef0d8e3b871686e8d01074e0682d085 | 893b51f1f14652cfd0bed7e8a94ce8d0d1869f70 | refs/heads/master | 2023-06-19T10:15:14.346909 | 2021-07-09T00:31:00 | 2021-07-09T00:31:00 | 384,280,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | # Generated by Django 3.2.5 on 2021-07-08 12:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TipoRopa',
fields=[
... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
f0b471a0600a93495c0e15ed76f3d552efa9d184 | 850d778687e3692ab2a38d4d2227391d92c21e6b | /atcoder.jp/abs/abc085_b/Main.py | 9b2f734afe64fe4015313bd05ea0084d57d6febb | [] | no_license | Valkyrja3607/AtCoder | 77e2e5e66c0e8e12bb902c35f679119c6576fad7 | 9218a50b1eb83e4498845d15d9dda41fab90ed73 | refs/heads/master | 2023-07-15T20:38:52.911301 | 2018-05-30T17:56:22 | 2018-05-30T17:56:22 | 294,980,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | N=int(input())
d=[]
for n in range(N):
a=int(input())
d.append(a)
l=set(d)
print(len(l)) | [
"purinjolly@gmail.com"
] | purinjolly@gmail.com |
7ee7d22663a9d862ee61bca9933193e14be13f2b | bd8906d5afd0c45ebb7b52b4385a2f81a518fa90 | /Oracle/삼성전자 시가총액, 나머지 동일가중, 전체 시총제한 1천억/factor_3_mid_섹터z_score.py | 720f451a84e700c4681acc788d7a50437cff4d12 | [] | no_license | lshlsh135/LeeSangHoon | e791b3ee3f92263867d33b77c033708849972aac | 9e8928cef02b91e26fdd39341de235ffd91b57f7 | refs/heads/master | 2021-01-22T13:30:10.063276 | 2017-10-10T01:10:31 | 2017-10-10T01:10:31 | 100,658,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87,000 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 27 16:18:55 2017
@author: SH-NoteBook
"""
#기존 factor_n_mid 버전은 직전 12개월(1개월 제외) 수익률이 높은 15개의 섹터에서 종목을 선택했지만,
#이 버전에서는 모든 섹터의 12개월 수익률을 이용해서 z_score을 구해서 점수로 합산해 줄 것이다.
#이렇게 하면 소외된 섹터에서도 압도적인 저평가 주식을 찾을 수 있을 가능성이 있기 때문이다.
import numpy as np
import pandas as pd
class fac... | [
"lshlsh135@naver.com"
] | lshlsh135@naver.com |
a7ff4cb08c7a67ed1ddb1ef59c1823983a2d871e | 34b9b39442bde1a3c8fa670ef60bcc84d772a067 | /Assignment 8 Pandas C Deadline Nov 28th 2017/assignment8_riva/assignment8_riva.py | 4be45bfb385dbb9f1ec5c84747421e2afc5cee58 | [] | no_license | bnajafi/Scientific_Python_Assignments_POLIMI_EETBS | b398fc2754b843d63cd06d517235c16177a87dcf | 8da926e995dcaf02a297c6bb2f3120c49d6d63da | refs/heads/master | 2021-05-07T22:36:14.715936 | 2018-01-16T21:12:33 | 2018-01-16T21:12:33 | 107,265,075 | 38 | 86 | null | 2018-01-16T21:12:34 | 2017-10-17T12:24:04 | Python | UTF-8 | Python | false | false | 1,285 | py | #ASSIGNMENT 8
import os
import numpy as np
import pandas as pd
import scipy as sp
os.chdir("/Users/Fede/Desktop/RLF Method")
Windows_DF=pd.read_csv("windows.csv",sep=";",index_col=0)
def Irrad (L,D):
Beam_Irradiation=pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0)
Diffuse_Irradiation=pd.read_csv("... | [
"b.najafi87@gmail.com"
] | b.najafi87@gmail.com |
d0c6abf00359ddc3a1523cb657b49938f8600ec9 | 759653bf8bd290e023d8f71a0cd5faa95c1687b0 | /code/682.py | 000c05ad032cd2c7fa334010a64023bc87993306 | [] | no_license | RuidongZ/LeetCode | 6032fc02d3f996155c4f6965f2ad2fc48de6c3c2 | ef8f9edd7857f4ef103924e21224dcd878c87196 | refs/heads/master | 2022-02-27T12:32:00.261851 | 2019-10-17T08:54:34 | 2019-10-17T08:54:34 | 115,314,228 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | # -*- Encoding:UTF-8 -*-
# 682. Baseball Game
# You're now a baseball game point recorder.
# Given a list of strings, each string can be one of the 4 following types:
#
# Integer (one round's score): Directly represents the number of points you get in this round.
# "+" (one round's score): Represents that the points... | [
"459597855@qq.com"
] | 459597855@qq.com |
90b5d74c4c0bbbf6e97d5ec51a0bc047fac45332 | 45870a80cbe343efe95eb9e8d0bd47c8c88353d1 | /特殊的函数/venv/Lib/site-packages/tensorflow/tools/api/generator/api/sets/__init__.py | e3bd9fc0fa9b918b422364fe9ce245c7e279815e | [] | no_license | pippichi/IntelliJ_PYTHON | 3af7fbb2c8a3c2ff4c44e66736bbfb7aed51fe88 | 0bc6ded6fb5b5d9450920e4ed5e90a2b82eae7ca | refs/heads/master | 2021-07-10T09:53:01.264372 | 2020-07-09T13:19:41 | 2020-07-09T13:19:41 | 159,319,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | """Imports for Python API.
This file is MACHINE GENERATED! Do not edit.
Generated by: tensorflow/tools/api/generator/create_python_api.py script.
"""
from tensorflow.python.ops.sets import set_difference
from tensorflow.python.ops.sets import set_intersection
from tensorflow.python.ops.sets import set_size
fro... | [
"874496049@qq.com"
] | 874496049@qq.com |
4890abc714e53efa4830665516af7572c922471a | 54ab0f79f5d68f4732ca7d205f72ecef99862303 | /torch/onnx/symbolic_opset16.py | 309309771df8a9f89de8a863ec1de008068633ac | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | csarofeen/pytorch | a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc | e8557ec5e064608577f81e51ccfe7c36c917cb0f | refs/heads/devel | 2023-04-30T02:42:13.558738 | 2023-03-14T00:50:01 | 2023-03-14T00:50:01 | 88,071,101 | 35 | 10 | NOASSERTION | 2023-06-21T17:37:30 | 2017-04-12T16:02:31 | C++ | UTF-8 | Python | false | false | 3,721 | py | """This file exports ONNX ops for opset 16.
Note [ONNX Operators that are added/updated in opset 16]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
https://github.com/onnx/onnx/blob/main/docs/Changelog.md#version-16-of-the-default-onnx-operator-set
New operators:
GridSample https://github.com/onnx/onnx/... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
754921f35d76333b549922c24ffecfa23b312d14 | c30bb146ea7eea462643776ee082e812ef737f1b | /docaligner/collect_devset.py | 6fdc64f525e5c419591aebcad25af63950a24af4 | [
"Apache-2.0"
] | permissive | christianbuck/CorpusMining | 918a21d8c708da5dbe389e1fce1df3b6b0f2ab83 | f9248c3528a415a1e5af2c5a54a60c16cd79ff1d | refs/heads/master | 2021-01-01T04:19:37.008401 | 2016-05-01T22:17:17 | 2016-05-01T22:18:05 | 56,846,782 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
seen_e = set()
seen_f = set()
written = set()
for line in sys.stdin:
line = line.split('\t')
e, f = None, None
if line[0] == 'en' and line[2] == 'fr':
e, f = line[1], line[3]
elif line[0] == 'fr' and line[2] == 'en':
f, e = line... | [
"cbuck@lantis.de"
] | cbuck@lantis.de |
4949cbb0291aca5e211ecd67e90ca792b92c9afa | 7210709d9213961a28c92c94e26ca073e4cfc49e | /confluent_server/confluent/osimage.py | 9dcb80a73e233e307eab9f0df2aa570633ed94dc | [
"Apache-2.0"
] | permissive | duxd2/confluent | b3381eda2586a1465ff292b077fa45bb2497f8b3 | b07ca72a8bf22b0c2c3286bc814720c3d50c5405 | refs/heads/master | 2021-11-23T22:27:38.150001 | 2021-08-17T21:18:10 | 2021-08-17T21:18:10 | 90,705,758 | 0 | 0 | null | 2017-05-09T05:27:05 | 2017-05-09T05:27:05 | null | UTF-8 | Python | false | false | 27,906 | py | #!/usr/bin/python
import confluent.exceptions as exc
import confluent.messages as msg
import eventlet
import eventlet.green.select as select
import eventlet.green.subprocess as subprocess
import glob
import logging
logging.getLogger('libarchive').addHandler(logging.NullHandler())
import libarchive
import hashlib
import... | [
"jjohnson2@lenovo.com"
] | jjohnson2@lenovo.com |
3ca20760d3d5dc3dc3bb776b44369842e2164817 | 77c241136d562340a9486e784d2c14a93147e0e0 | /wagtail_localize/test/migrations/0001_initial.py | 2affaf7e03a551f3979e20d56087df190315d542 | [] | no_license | fdemmer/wagtail-localize | d694caf67bda53b5e48d7c04f5bed8ed655dc984 | 1b4378c5ff943a8e09bd9ed45f0f991d27ecb913 | refs/heads/master | 2022-11-23T11:40:51.507070 | 2020-07-17T11:36:38 | 2020-07-17T14:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,228 | py | # Generated by Django 2.1.10 on 2019-07-25 14:55
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import uuid
import wagtail.core.blocks
import wagtail.core.fields
import wagtail_localize.models
import wagtail_localize.test.models
class Migration(migrations.Migrati... | [
"karl@kaed.uk"
] | karl@kaed.uk |
9064d19e4d304a39793423587aab4d40eb1e04b7 | dded9fb6567928952a283fc1c6db6a5a860bc1a6 | /tests/browser/after_hooks_tests.py | 16ded3721d2c8e8b688284b77ebfbd388120865c | [
"MIT"
] | permissive | watir/nerodia | 08b84aca4b72eae37e983006c15b824412335553 | 7e020f115b324ad62fe7800f3e1ec9cc8b25fcfe | refs/heads/master | 2023-04-15T20:02:34.833489 | 2023-04-06T23:46:14 | 2023-04-06T23:46:14 | 87,383,565 | 88 | 14 | MIT | 2023-04-06T23:42:29 | 2017-04-06T03:43:47 | Python | UTF-8 | Python | false | false | 8,145 | py | import pytest
from selenium.common.exceptions import UnexpectedAlertPresentException
from nerodia.exception import UnknownObjectException
@pytest.fixture
def cleanup_hooks(browser):
yield
browser.window(index=0).use()
browser.after_hooks.after_hooks = []
@pytest.fixture
def clear_alert(browser):
yi... | [
"lucast1533@gmail.com"
] | lucast1533@gmail.com |
6dbb7130fb243a31b3df1a3302caa8ea76fc668f | bc441bb06b8948288f110af63feda4e798f30225 | /monitor_sdk/api/alert_rule/delete_alert_rule_pb2.py | 5a83c31591a999f3815fab14c9af681c7edc0708 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 7,377 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: delete_alert_rule.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pr... | [
"service@easyops.cn"
] | service@easyops.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.