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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8b98c7f070d0e848c24f545f4bbe15d3ad0aeea | 892dd32ee0be7135cd33c875b06dcc66307dcc99 | /automation/MPTS/sample/TSMOnly.py | e8f67c541b758ced10e2ead3362d47a562c65066 | [] | no_license | cloudbytestorage/devops | 6d21ed0afd752bdde8cefa448d4433b435493ffa | b18193b08ba3d6538277ba48253c29d6a96b0b4a | refs/heads/master | 2020-05-29T08:48:34.489204 | 2018-01-03T09:28:53 | 2018-01-03T09:28:53 | 68,889,307 | 4 | 8 | null | 2017-11-30T08:11:39 | 2016-09-22T05:53:44 | Python | UTF-8 | Python | false | false | 3,749 | py | import json
import requests
import time
#NoofAccounts=_MyValue_
#NoofTSMs=_MyValue_
#NoofNFSVolumes=_MyValue_
#NoofISCSIVolumes=_MyValue_
#### Function(s) Declaration Begins
def sendrequest(url, querystring):
#print url+querystring
response = requests.get(
stdurl+querystring, verify=False
)
... | [
"karthik.s@cloudbyte.com"
] | karthik.s@cloudbyte.com |
8021b7fcb0d5d9321c202c7efa6aa736d098d313 | 2f9c2bb2c8d32368f90ef798c08848cec4ea2ebd | /tests/unit/flow/test_asyncflow.py | 5cf46aaf6c1d714e2dbd80eeda95f8804342fc62 | [
"Apache-2.0"
] | permissive | automation555/jina | 9e0aafd9d894bd5995f091ea0f8566a9ed0f781d | 337526c00265190fc45235b80df10c0a75b51c09 | refs/heads/master | 2023-06-03T04:33:18.460871 | 2021-06-17T08:51:21 | 2021-06-17T08:51:21 | 377,765,051 | 0 | 0 | Apache-2.0 | 2021-06-17T08:55:30 | 2021-06-17T08:50:48 | Python | UTF-8 | Python | false | false | 5,500 | py | import asyncio
import time
import numpy as np
import pytest
from jina import Document, Flow
from jina.flow.asyncio import AsyncFlow
from jina.logging.profile import TimeContext
from jina.types.document.generators import from_ndarray
from jina.types.request import Response
from tests import validate_callback
num_docs... | [
"rajashree.patil@embold.io"
] | rajashree.patil@embold.io |
cd9ba9cd628293fc4ec5050ca228e80392fb1503 | e2992452a3c52f4cbbc64e1686128ad464b71d16 | /libMe/util/EncodeUtil.py | f03ef111ddbb46dd976e0044504b8005c05cc0da | [] | no_license | MaGuiSen/studyScrapy | 6b84605a15027ffc24501d690666f419ebb379fd | 03604bafe19e55db12677a4af388c8a9198ca572 | refs/heads/master | 2021-01-17T04:30:23.858217 | 2017-08-30T01:50:08 | 2017-08-30T01:50:08 | 95,433,695 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | # -*- coding: utf-8 -*-
def getCoding(strInput):
"""
获取编码格式
"""
if isinstance(strInput, unicode):
return "unicode"
try:
strInput.decode("utf8")
return 'utf8'
except:
pass
try:
strInput.decode("gbk")
return 'gbk'
except:
pass
def... | [
"1059876295@qq.com"
] | 1059876295@qq.com |
a47b02fdaab7172d06df7b342db19356ab519101 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /4_set/滚动替换更新/Distinct Coin Sums.py | a98649e5d5c1c416fb9cc5913814f3c670f65be5 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | class Solution:
def solve(self, coins, quantities):
"""Return the number of distinct coin sum values you can get by using non-empty group of these coins."""
dp = set([0])
for index, coin in enumerate(coins):
ndp = set()
for pre in dp:
for count ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
92fa1609950bf1451a3c35e5f8b6d7ea0e503658 | 67117705720a3e3d81253ba48c1826d36737b126 | /Wk10_STRANDS/evaluate_random.py | 5fd8aa91b959b382d35421fe4925a13425d89ebb | [] | no_license | pyliut/Rokos2021 | 41f0f96bc396b6e8a5e268e31a38a4a4b288c370 | 70753ab29afc45766eb502f91b65cc455e6055e1 | refs/heads/main | 2023-08-13T17:29:30.013829 | 2021-09-26T19:01:35 | 2021-09-26T19:01:35 | 382,092,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 1 15:15:57 2021
@author: pyliu
"""
import pandas as pd
import numpy as np
import scipy as sp
import time
import random
from random_prior import *
from evaluate_prior import *
def evaluate_random(edge,df_test, df_train, filename_train = "tsc_map.yaml",
... | [
"noreply@github.com"
] | pyliut.noreply@github.com |
cce02dbf8c91ec4ea667196ff84e70b817f7c157 | b08870f8fe7b3cf1bbab3c52a7bacbb36ee1dcc6 | /verp/stock/doctype/quick_stock_balance/quick_stock_balance.py | 34d21c079b2527cb9d590283dc3ba5f86886df3f | [] | no_license | vsadminpk18/verpfinalversion | 7148a64fe6134e2a6371470aceb1b57cc4b5a559 | 93d164b370ad9ca0dd5cda0053082dc3abbd20da | refs/heads/master | 2023-07-13T04:11:59.211046 | 2021-08-27T06:26:48 | 2021-08-27T06:26:48 | 400,410,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from verp.stock.utils import get_stock_balance, get_stock_... | [
"admin@vespersolutions.tech"
] | admin@vespersolutions.tech |
6f7e66a72531e3e9d15c5337c50890545e6c8b34 | ffc1cc3bb7b68335b115122fdc7924fc4e31d528 | /pro42.py | c6c957f50c694f62e26d9d6bbc341b486cd588f5 | [] | no_license | Rihanashariff/swathi24 | dba1dd3c3d2ff583ae431b432e0ef262bfeb3ac3 | 2b0d21f2febdd2a563e8f0affeebd5ca7a5821b8 | refs/heads/master | 2020-07-02T05:28:32.199982 | 2019-06-29T08:22:10 | 2019-06-29T08:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #split arra
n,k=map(int,input().split())
l=list(map(int,input().split()))
if k==1:
print(min(l))
elif k==2:
print(max(l[0],l[n-1]))
else:
print(max(l))
| [
"noreply@github.com"
] | Rihanashariff.noreply@github.com |
eb754b8caa1a4935595aabf735b2d83766c294f8 | c5f58af61e3577ded52acda210f4f664651b598c | /template/mmdetection/configs/legacy_1.x/mask_rcnn_r50_fpn_1x_coco_v1.py | b089c0d4ad86f3f7240624bb3b70c23518049957 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hojihun5516/object-detection-level2-cv-02 | 0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac | bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109 | refs/heads/master | 2023-08-31T09:50:59.150971 | 2021-10-16T15:00:19 | 2021-10-16T15:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | _base_ = [
"../_base_/models/mask_rcnn_r50_fpn.py",
"../_base_/datasets/coco_instance.py",
"../_base_/schedules/schedule_1x.py",
"../_base_/default_runtime.py",
]
model = dict(
rpn_head=dict(
anchor_generator=dict(type="LegacyAnchorGenerator", center_offset=0.5),
bbox_coder=dict(typ... | [
"hojihun5516@daum.net"
] | hojihun5516@daum.net |
dc5c63b9b7018214aec3114408ab7a45adf6bb20 | e5cb4f8e6a350b511080e28a4acb4f5fd264f5f9 | /emission/core/wrapper/confirmedtrip.py | 3d6357e93f31c0b398c5fbf82d183913e3bd25db | [
"BSD-3-Clause"
] | permissive | jf87/e-mission-server | cde78e92badc640f307e979bd044da814c31de02 | 2e5fb715b6b9ec88c2c938de08a659d11fac34a6 | refs/heads/master | 2021-08-09T00:08:58.838672 | 2021-06-21T08:31:22 | 2021-06-21T08:31:22 | 163,435,995 | 0 | 0 | BSD-3-Clause | 2020-08-09T13:32:08 | 2018-12-28T17:50:22 | Jupyter Notebook | UTF-8 | Python | false | false | 1,095 | py | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
import emission.core.wrapper.trip as ecwt
import emission.core.wrapper.wrappe... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
5e8021a95005100a27855482ebdecd37028530ca | 15fbf63eedc5a19836ff198bd2b80117e356955a | /stickerfinder/telegram/callback_handlers/report.py | 738bd113d52daf995eb74a28b3ab42892717e2cd | [
"MIT"
] | permissive | drmhdh/sticker-finder | cf2656160bee45d1b51ddda130a766f48fecfe8a | 688656a4b67c1e5057c0d1dc5b21201f0466b7ab | refs/heads/master | 2022-01-26T14:39:45.366537 | 2019-05-02T20:32:11 | 2019-05-02T20:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | """Module for handling sticker set voting task buttons."""
from stickerfinder.models import Task
from stickerfinder.helper.maintenance import check_maintenance_chat
from stickerfinder.helper.callback import CallbackResult
from stickerfinder.helper.telegram import call_tg_func
from stickerfinder.helper.keyboard import g... | [
"arne@twobeer.de"
] | arne@twobeer.de |
1928029f64bfc831e014cbfda0d1844428cc4025 | 524591f2c4f760bc01c12fea3061833847a4ff9a | /arm/opt/ros/kinetic/lib/python2.7/dist-packages/shape_msgs/msg/_SolidPrimitive.py | cd7fab91d3d5ac29f8339b1ff910e358710e246d | [
"BSD-3-Clause"
] | permissive | Roboy/roboy_plexus | 6f78d45c52055d97159fd4d0ca8e0f32f1fbd07e | 1f3039edd24c059459563cb81d194326fe824905 | refs/heads/roboy3 | 2023-03-10T15:01:34.703853 | 2021-08-16T13:42:54 | 2021-08-16T13:42:54 | 101,666,005 | 2 | 4 | BSD-3-Clause | 2022-10-22T13:43:45 | 2017-08-28T16:53:52 | C++ | UTF-8 | Python | false | false | 5,767 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from shape_msgs/SolidPrimitive.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SolidPrimitive(genpy.Message):
_md5sum = "d8f8cbc74c5ff283fca29569ccefb45d"
_type... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
752b3698e3219d1ca10929b4519afa6a755b629c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_210/139.py | f73e8657befbc6ae924e000ab345415d1206ec8b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from math import pi
f = open('ans.txt', 'w')
c = int(input())
for i in range(1,c+1):
c, j = map(int, input().split())
if (c == 1 and j == 0) or (j == 1 and c == 0):
a, b = map(int, input().split())
f.write(f"Case #{i}: 2\n")
elif c == 2 or j == 2:
a, b = map(int, input().split())
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
28759365923d8f64d0f27f0cc86e033caa637517 | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/baekjoon/2.algorithm/implementation/백준_청소년_상어.py | ec642c5b7e07bf253b3c70c6b6aca33a2a3575c5 | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 2,421 | py | import sys, copy
def get_fish_idx(x, y, fish_list):
for idx, fish in enumerate(fish_list):
if fish[2][0] == x and fish[2][1] == y:
return idx
# 해당 좌표의 물고기가 없는 경우
return -1
def is_valid(x, y):
return 0 <= x < 4 and 0 <= y < 4
def move_fishes(sx, sy, fish_list):
global ds
... | [
"galid1@naver.com"
] | galid1@naver.com |
a247dd35bfeefdfd7695bf5a39e69db77ff084f0 | fc61c9d899ef9c8ddadac0875ab738df28be272e | /python/python-online-lec/ch4/python_advanced/ch04-01.py | cee48df2e2ff9a08a9daa072f373c86f7ad177cc | [
"MIT"
] | permissive | hbyyy/TIL | 4908b91d880df268f5f7b8a43703f673183f2e8b | e89ae2913a8a38eb7f480a9ec2324c3ac11e309e | refs/heads/master | 2022-12-21T04:34:13.896078 | 2021-05-24T13:19:57 | 2021-05-24T13:19:57 | 219,916,943 | 0 | 0 | MIT | 2022-12-12T05:15:04 | 2019-11-06T05:12:55 | Jupyter Notebook | UTF-8 | Python | false | false | 215 | py | # first class function
print(set(dir(iter([1,2,3,4,5]))) - set(dir(range(10))) )
def factorial(n: int) -> int:
if n == 1:
return n
return n * factorial(n-1)
print([*map(factorial, range(1, 6))])
| [
"qjaduddl94@gmail.com"
] | qjaduddl94@gmail.com |
d0b6e06ab67e1a7dec9b3228f774cbce4c4df7db | e59e711e81536f027b10f7033a698ab9e39d489c | /Geometry/CaloEventSetup/python/HFNoseTopology_cfi.py | 031fe99595ff33182b0da4158489904226849541 | [
"Apache-2.0"
] | permissive | AndreaBellora/cmssw | 73e5f668dfd188bfedcb532b2bd364c486561b03 | 26cf1918ad4133f8178e303a68d97fc58fbeac9f | refs/heads/master | 2023-07-20T11:44:57.079220 | 2018-07-31T12:08:32 | 2018-07-31T12:08:32 | 143,017,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | import FWCore.ParameterSet.Config as cms
#
# This cfi should be included to build the HGCal Topologies
#
HFNoseTopologyBuilder = cms.ESProducer("HGCalTopologyBuilder",
Name = cms.string("HFNoseSensitive"),
Type = cms.int32(6)
... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
a802683d34b658d3d0748f9a476e3ecdc62a1c39 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbon/common/lib/markdown/extensions/def_list.py | 4f0de89912416b74ca84996e379a5edc82dfedb1 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\markdown\extensions\def_list.py
import re
import markdown
from markdown.util import etree
class DefListProcessor(markdown.blockprocessors.BlockProcessor):
RE = re.compile('(^|\\n)[ ]{0,3}:[ ]{1,3}(.*?)(\\n|$)')
... | [
"le02005@163.com"
] | le02005@163.com |
7c87c227337384c92c3b5bf13a083449e40b2b7e | a982d8f9fd99c4af077dcafc1092a0f3779d9b39 | /web_pjt/web_pjt/articles/views.py | 1390a35c247ee3cc9ccd0f2dabc9c68159866dd9 | [] | no_license | do-park/DDDJ | cbe4586a583618b616eaab19014ba16e69b38f06 | 22b53bb4822d7e0b61f5a8226bbadb9b9cb20ea0 | refs/heads/master | 2023-01-12T14:30:16.303107 | 2020-11-07T16:09:11 | 2020-11-07T16:09:11 | 273,131,598 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,077 | py | from django.shortcuts import render, redirect, get_object_or_404
from .models import Article, Comment
from movies.models import Movie
from .forms import ArticleForm, CommentForm
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
from datetime import timedelta
import da... | [
"dohee.pa@gmail.com"
] | dohee.pa@gmail.com |
e61c31f37c9964c7ffd39869a8d2ecb2b8a7ced8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_alibis.py | d0171b2a3add283c5bec1d670d6db8781a0e1ca8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.nouns._alibi import _ALIBI
#calss header
class _ALIBIS(_ALIBI, ):
def __init__(self,):
_ALIBI.__init__(self)
self.name = "ALIBIS"
self.specie = 'nouns'
self.basic = "alibi"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5f7d39150e878a66ec23e062dd7d70b9bcd804e6 | 2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6 | /baekjoon/not_accepted/1167 트리의 지름_floyd-warshall_2.py | 40e4929db54865cabac4b0a5397d10b91363bfe1 | [] | no_license | grasshopperTrainer/coding_practice | 530e9912b10952c866d35d69f12c99b96959a22d | d1e5e6d6fa3f71f1a0105940fff1785068aec8b0 | refs/heads/master | 2023-06-01T13:30:15.362657 | 2021-06-08T08:40:15 | 2021-06-08T08:40:15 | 267,359,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # reducing memory usage
# time out
from sys import stdin
def solution(N, routes):
MAX = 10_000
tree = {}
for r in routes:
depart = r[0]
it = iter(r[1:])
for n in it:
tree[(depart, n)] = next(it)
for m in range(1, N+1):
for i in range(1, N+1):
fo... | [
"grasshoppertrainer@gmail.com"
] | grasshoppertrainer@gmail.com |
6a03f62b4905e3c7d1cdbf69926f721ac85d51c6 | 3344e1489e1c8616181314a6524ff593f642c2c9 | /dl/chapter2/or_func.py | 6a2fcb88fe740c410fecab9cb1a821c2f0694d73 | [] | no_license | 21nkyu/dl | 2f0fb8405f7e10bd02e31efa9334921b8df97f97 | cdcbd3a2bedaa4542d7dbacbf027396fc70ce3f4 | refs/heads/main | 2023-08-31T16:38:36.615165 | 2021-11-03T15:20:22 | 2021-11-03T15:20:22 | 422,246,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import numpy as np
def or_func(x1, x2):
x = np.array([x1, x2])
w = np.array([0.5, 0.5])
b = -0.2
tmp = np.sum(x*w)+b
if tmp <= 0:
return 0
return 1 | [
"adele7178@naver.com"
] | adele7178@naver.com |
eb9292b595bef60e166068873d143b42ad54a2d8 | e86dbbe3f0650b4d1f4039211e4702859b6b5bfa | /pyscf/delta_scf/scf_s.py | aff04e8034bf02661bdd32a2210175d2181c7620 | [] | no_license | sapatha2/cuo | 07a568b021b69e6448763d232b5f63857f9e2932 | 006b190ae29de0af24c0fd905186ccda0c9ade94 | refs/heads/master | 2020-03-24T02:01:50.269432 | 2019-06-14T17:52:53 | 2019-06-14T17:52:53 | 142,359,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,932 | py | #PySCF input file for CuO calculations
import json
from pyscf import gto,scf,mcscf, fci,lo,ci,cc
from pyscf.scf import ROHF,ROKS,UHF,UKS, addons
import numpy as np
import pandas as pd
df=json.load(open("trail.json"))
charge=0
#Additional states
S=[1,1,1,1,1]
symm_dict=[
{'A1':(5,5),'E1x':(3,3),'E1y':(3,... | [
"sapatha2@illinois.edu"
] | sapatha2@illinois.edu |
c4cdc5f902e454c3555367530422548c79313419 | 319d66c48f51e3d98e9df953d406a6f545b72363 | /Python/TwoStrings.py | 93cdab9452eab2fbcc476f7b088f5e8746fc5d76 | [
"Apache-2.0"
] | permissive | WinrichSy/HackerRank-Solutions | 291bc7a32dc4d9569d7028d6d665e86869fbf952 | ed928de50cbbbdf0aee471630f6c04f9a0f69a1f | refs/heads/master | 2022-07-18T15:43:48.865714 | 2020-05-16T00:21:56 | 2020-05-16T00:21:56 | 255,453,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | #Two Strings
#https://www.hackerrank.com/challenges/two-strings/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the twoStrings function below.
def twoStrings(s1, s2):
s1_set = list(set(s1))
s2_set = list(set(s2))
for i in s1_set:
if i in s2_set:
... | [
"winrichsy@gmail.com"
] | winrichsy@gmail.com |
970a27ad5a6f180d6f567b10a24309540a2f364f | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/secondaires/familier/types/barre_attache.py | 697fc617228ad33fb007e25b34c48b074ec5d852 | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2014 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# lis... | [
"kredh@free.fr"
] | kredh@free.fr |
7be2abeab2df7f1d5bc04459eee30d4129b87489 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/integer/Schema+Instance/NISTXML-SV-IV-atomic-integer-fractionDigits-1-1.py | 8d454b0ee6aa32933dfcdcb7ea28358723d58032 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 298 | py | from output.models.nist_data.atomic.integer.schema_instance.nistschema_sv_iv_atomic_integer_fraction_digits_1_xsd.nistschema_sv_iv_atomic_integer_fraction_digits_1 import NistschemaSvIvAtomicIntegerFractionDigits1
obj = NistschemaSvIvAtomicIntegerFractionDigits1(
value=-999999999999999999
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
28c4653058cf8e268d6f9df167b0f7f1436718d3 | 5f9ebed60f6f2568b7c4a34505ff9e36b77968f3 | /figure_paper_xpol_composites.py | 7ef77c6a90cb4f682d27bf7c45b258a63c37460c | [] | no_license | rvalenzuelar/xpol_vis | 3497b990694f033c711b7a4e2f0c199d46567efd | 181fd831afaafa7e7018a2425b0ee9b2a820f649 | refs/heads/master | 2020-04-05T14:09:37.028300 | 2018-04-26T20:20:32 | 2018-04-26T20:20:32 | 50,193,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,449 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 22 11:50:10 2016
@author: raul
"""
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import xpol_tta_analysis as xta
import numpy as np
import mpl_toolkits.axisartist as AA
import matplotlib as mpl
from matplotlib.gridspec import GridSpecFromSubplotSp... | [
"raul.valenzuela@colorado.edu"
] | raul.valenzuela@colorado.edu |
14ae6c673eef938af1474c912a457a9e27db17f9 | 2cb3447b55b3a298ba744f2fe67aaae16938c66d | /xmldirector/plonecore/demo/xmldocument.py | 36c34ddcd099b1a6dd349501b5b31e08ddfeddd3 | [] | no_license | tecumsehmaverick/xmldirector.plonecore | e2bc8fe0c065f73bd27438184cf4552c2df668e8 | 30f28878d6de1ffd1baf2fa0e6d903a7da204c7b | refs/heads/master | 2020-12-28T20:30:29.720830 | 2015-01-23T17:01:34 | 2015-01-23T17:01:34 | 29,760,631 | 0 | 1 | null | 2015-01-24T01:01:02 | 2015-01-24T01:01:02 | null | UTF-8 | Python | false | false | 1,337 | py | # -*- coding: utf-8 -*-
################################################################
# xmldirector.plonecore
# (C) 2014, Andreas Jung, www.zopyx.com, Tuebingen, Germany
################################################################
"""
A sample Dexterity content-type implementation using
all XML field types.
"... | [
"yet@gmx.de"
] | yet@gmx.de |
8dc8c99c234c8352a74622536467e1147f3e3197 | 474c7eab287cb3ebd3788a1cac72a6dffa9941bc | /Leetcode/ana.py | 5747471217ef057955d52e3a9d2c7d38e609badf | [] | no_license | shenlant314/Reptile | bf85b7d8e19defa65a6a30140732bf37222e98da | 42f5ea8681f8c477de9db109e9a0d5dba2dfccae | refs/heads/master | 2023-04-17T06:07:52.455713 | 2021-04-19T23:39:02 | 2021-04-19T23:39:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 4 20:54:36 2020
@author: Lee
"""
from pymongo import MongoClient
import pandas as pd
from pyecharts import options as opts
from pyecharts.charts import Geo,Line,WordCloud,Pie,Parallel,PictorialBar,Bar,Polar
from pyecharts.globals import ChartType, SymbolType
pd.set_op... | [
"870407139@qq.com"
] | 870407139@qq.com |
e95e5d6df88dae462e0f7709393296bff7e29fa5 | 9d131148c2189f73e63b76c7a097cd4cd64ee18f | /analyze.py | 1e3e75212c4eaa4f94c68423f94ae41c15889a9d | [] | no_license | osmmaz/Twitter_Analytics | 2e6f51b5f6be58d4dd0d6474c9a1b309b85cb099 | 829a27a038a5ff8270378cace4bfaa4b6a778bb9 | refs/heads/master | 2020-04-15T00:43:18.497042 | 2017-08-26T14:55:46 | 2017-08-26T14:55:46 | 164,250,306 | 1 | 0 | null | 2019-01-05T20:51:56 | 2019-01-05T20:51:56 | null | UTF-8 | Python | false | false | 5,441 | py | '''
Author: Adil Moujahid
Description: Script for analyzing tweets to compare the popularity of 3 programming languages: Python, Javascript and ruby
Reference: http://adilmoujahid.com/posts/2014/07/twitter-analytics/
'''
import json
import pandas as pd
import matplotlib.pyplot as plt
import re
def word_in_text(word,... | [
"bossi.ernestog@gmail.com"
] | bossi.ernestog@gmail.com |
32f0ebd68a4cf905217afbd34ce240f7c6c03b8e | 5a42ce780721294d113335712d45c62a88725109 | /project/graphdata/module/yiyiyuan/model/yi_loan_flows.py | df4e31090b6b58f8024d0997f2403261bc3c5356 | [] | no_license | P79N6A/project_code | d2a933d53deb0b4e0bcba97834de009e7bb78ad0 | 1b0e863ff3977471f5a94ef7d990796a9e9669c4 | refs/heads/master | 2020-04-16T02:06:57.317540 | 2019-01-11T07:02:05 | 2019-01-11T07:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # -*- coding: utf-8 -*-
# 注意这里使用了阿里云本地库的通讯录
# sqlacodegen mysql://root:123!@#@127.0.0.1/xhh_test --outfile yyy.py --flask
from lib.application import db
from .base_model import BaseModel
class YiUserLoanFlow(db.Model, BaseModel):
__bind_key__ = 'own_yiyiyuan'
__tablename__ = 'yi_user_loan_flows'
id = db.... | [
"wangyongqiang@ihsmf.com"
] | wangyongqiang@ihsmf.com |
b706a298261f243da96e72be47215ae11ce4a86f | 4a9dada02c749e9e5277fe1e35357d7b2b28ad5c | /顾天媛2018010980/操作系统实验/作业2.py | 780d1e608f2afcdbef5a6f093500ede8eb25ba41 | [] | no_license | wanghan79/2020_Option_System | 631cc80f52829390a128a86677de527472470348 | f37b870614edf7d85320da197d932df2f25a5720 | refs/heads/master | 2021-01-09T13:10:05.630685 | 2020-07-10T03:30:39 | 2020-07-10T03:30:39 | 242,312,271 | 13 | 9 | null | 2020-07-04T16:13:11 | 2020-02-22T09:12:56 | Python | UTF-8 | Python | false | false | 308 | py | # !/usr/bin/python3
# -*- coding: UTF-8 -*-
"""
Author: Ty.Gu
Purpose: os.system
Created: 24/6/2020
"""
# 作业2. 采用python语言实现windows命令行调用;提示:采用Python内置工具包os.system
import os
os.system('cd D:\\QQ & mkdir test' )
a = os.system('python 作业1.py')
print(a)
| [
"noreply@github.com"
] | wanghan79.noreply@github.com |
111386fe4bfdf0ed187f70cc4815af53d87d2cf4 | 0274c84e6bf546a325ba2a981426a9cad33cdcfc | /pycoin/ecdsa/Curve.py | c022efb03779d2035b240e74c8c42f2d5b4d640b | [
"MIT"
] | permissive | jaschadub/pycoin | 2cc646461415d68b69ae5a0c4496c6a6b37740e2 | 1e8d0d9fe20ce0347b97847bb529cd1bd84c7442 | refs/heads/master | 2021-07-05T05:31:47.734966 | 2019-03-16T18:33:47 | 2019-03-16T18:33:47 | 140,237,273 | 0 | 0 | MIT | 2019-03-16T18:41:54 | 2018-07-09T05:51:01 | Python | UTF-8 | Python | false | false | 5,076 | py | # Adapted from code written in 2005 by Peter Pearson and placed in the public domain.
from .Point import Point
def _leftmost_bit(x):
# this is closer to constant time than bit-twiddling hacks like those in
# https://graphics.stanford.edu/~seander/bithacks.html
assert x > 0
result = 1
while resul... | [
"him@richardkiss.com"
] | him@richardkiss.com |
67e7af372c2ef8efcd69e1cb3b3609ff36a04e9b | ed491b7539193c30ffefcc52af276f77fc98f979 | /train_LSTM.py | bf356af65321d25c10d22c36291f2a455380ec77 | [
"Apache-2.0"
] | permissive | FredHuang16/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch | fb5dcb345379deadc632a43f73a53c436a02ea42 | 8ef5b1321cf79063ee4b146c7502a31815e9f33b | refs/heads/master | 2021-01-16T00:46:33.781766 | 2017-08-10T06:51:21 | 2017-08-10T06:51:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,640 | py | import os
import sys
import torch
import torch.autograd as autograd
import torch.nn.functional as F
import torch.nn.utils as utils
import random
import shutil
random.seed(336)
torch.manual_seed(1234)
def train(train_iter, dev_iter, test_iter, model, args):
if args.cuda:
model.cuda()
optimizer = torch.... | [
"bamtercelboo@163.com"
] | bamtercelboo@163.com |
da2e3cb7bc9bcca1f4ca59c793fb86ef425b338d | 0b2833b1b129d72ff805e3d775df00f79f421bfb | /parse_noise.py | 53bbdcb73f13007c68694e2313de58134e3b8308 | [] | no_license | xssChauhan/torino-noise | 95f2d8b8c9937c3135221f53da990716c010be38 | 10d58bdea11dc0a716e22ea325b901a4b6b59191 | refs/heads/master | 2023-05-31T16:52:34.217809 | 2021-06-27T19:56:43 | 2021-06-27T19:56:43 | 380,284,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | import pandas as pd
import numpy as np
from datetime import datetime
from datetime import time
def read_noise_csv(file):
df = pd.read_csv(file, delimiter=";", skiprows=list(range(8)))
return df
def combine_date_hour(row):
date = row["Data"]
hour = row["Ora"]
parsed_date = datetime.strptime(... | [
"shikhar.chauhan@live.com"
] | shikhar.chauhan@live.com |
90734113d3bb75eb87aa511a4584a9e3234f7918 | 625d113273cf9bd6474e8ac12cd8afe2e4f8d50b | /Disposable Teleports.py | 9147fab6c0a205e64c33d3d93de55a5efabb3f8e | [] | no_license | hrvach/CheckiO | 9e4b04cf93c8f4da7bd61b55a3cf9bdcaea0836f | d25bbdb3b33441f45f4b587fd2a651c5c086484a | refs/heads/master | 2020-03-25T02:25:57.273381 | 2018-08-02T12:13:28 | 2018-08-02T12:13:28 | 143,289,238 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | def checkio(teleports_string):
teleports, paths = {frozenset(i) for i in teleports_string.split(',')}, []
def walk(station, links, path):
if len(set(path)) == 8 and station == '1':
paths.append(path+station)
for link in filter(lambda x: station in x, links):
walk(next(it... | [
"github@hrvoje.org"
] | github@hrvoje.org |
60fe823701b35b1c4581a56117b8f31fd2dd832e | 7d6bc1812e5ab4f55c53ae168a6f2317b35e037c | /l10n_cl_hr_payroll/model/hr_bonus.py | 2485352eca5af3bda8f1f15699506ec45a91e6c5 | [] | no_license | suningwz/ODOO13-3 | f172c2e16d2d3310f7c0cf88ff5b0fb5f1e1d15c | 527732e22807be0d6a692ab808b74794cb027914 | refs/heads/master | 2022-12-15T10:19:51.328186 | 2020-09-17T22:16:14 | 2020-09-17T22:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,491 | py | from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
RO_STATES = {'draft': [('readonly', False)]}
class HrBonusSheet(models.Model):
_name = 'hr.bonus.sheet'
_description = 'Hoja de Bonos RRHH'
_inherit = ['mail.thread']
_order = 'date_issue desc, name desc, id desc'
... | [
"adrt271988@gmail.com"
] | adrt271988@gmail.com |
7fda55dbef1e0a4b55a7c58ca917e5e021f7952d | 5d28c38dfdd185875ba0edaf77281e684c81da0c | /dev/update_ml_package_versions.py | 4d3487199c6883792b944628ee0461737a34b53a | [
"Apache-2.0"
] | permissive | imrehg/mlflow | 3a68acc1730b3ee6326c1366760d6ddc7e66099c | 5ddfe9a1b48e065540094d83125040d3273c48fa | refs/heads/master | 2022-09-24T05:39:02.767657 | 2022-09-20T00:14:07 | 2022-09-20T00:14:07 | 244,945,486 | 1 | 0 | Apache-2.0 | 2020-03-04T16:11:54 | 2020-03-04T16:11:53 | null | UTF-8 | Python | false | false | 3,569 | py | """
A script to update the maximum package versions in 'mlflow/ml-package-versions.yml'.
# Prerequisites:
$ pip install packaging pyyaml
# How to run (make sure you're in the repository root):
$ python dev/update_ml_package_versions.py
"""
import argparse
import json
from packaging.version import Version
import re
im... | [
"noreply@github.com"
] | imrehg.noreply@github.com |
0184f7b0157794daaa04d557ec2d252d71771506 | 13625dd7375297b066ccd69d6c229e9a1535c9b2 | /payment/migrations/0002_auto_20201222_1654.py | 0b3a4704493f451e693f9d894903346df0675eeb | [] | no_license | rajman01/investfy | 9d5fa3ed7593ec13db575016fc839664630318af | a4c8bf16ba7a1ce38d1370e4779284a4d6426733 | refs/heads/main | 2023-09-01T19:10:18.411861 | 2023-08-28T02:30:23 | 2023-08-28T02:30:23 | 320,408,218 | 0 | 1 | null | 2023-08-28T02:30:24 | 2020-12-10T22:46:03 | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 3.1.3 on 2020-12-22 15:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('payment', '0001_initial'... | [
"alameenraji31@gmail.com"
] | alameenraji31@gmail.com |
b0b869cbd233806fd2ad95371f63f04ff9c5a250 | 634514a9c10e32051964b179cc807d089d31124e | /S2l/Thesis_Ch3/Exp1_reach3dof/Scripts/gym_test_random.py | 4aef80b71d849bb60fdb335eafc4e754e3b2312f | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | leopauly/Observation-Learning-Simulations | 34009872a1f453ffc4ae7ddced7447a74ff704c4 | 462c04a87c45aae51537b8ea5b44646afa31d3a5 | refs/heads/master | 2021-08-04T10:55:42.900015 | 2021-07-05T13:41:09 | 2021-07-05T13:41:09 | 129,761,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | #### Random agent in gym env
##Imports
import numpy as np
import gym
import matplotlib.pyplot as plt
## Defining env
env = gym.make('Pusher3DOFReal-v1')
env.switch=-5
env.initialize_env()
#env = gym.make('Pusher7DOF-v1')
print(env.observation_space.shape[0])
print(env.action_space.shape[0])
## Defining vars
LR = 1e... | [
"meetleopauly@yahoo.com"
] | meetleopauly@yahoo.com |
70dde7f0aba2392ea2ae24df204e883b3e0f9b2a | 1f177b5e7bdaca49076c6ff806f5e2be9a86e834 | /algorithm/190121_array/practice_01.py | e802a0b6dc1111ee6056bb6ebc4cea381642c8ca | [] | no_license | silverlyjoo/TIL | 9e19ba407a9dc82c231e66e352f1c7783e767782 | 98a139770a6d19598d787674bcf20d2fe744ced0 | refs/heads/master | 2021-08-17T02:10:35.101212 | 2019-08-26T08:21:32 | 2019-08-26T08:21:32 | 162,099,046 | 6 | 1 | null | 2021-06-10T21:20:36 | 2018-12-17T08:32:39 | Jupyter Notebook | UTF-8 | Python | false | false | 530 | py |
arr = [[1,3,4,5,9],[10,11,2,13,14],[15,6,7,8,16],[17,18,12,19,20],[21,22,23,24,25]]
# arr.append(map(int, input().split()))
arr = [[0 for ze in range(5)] for ro in range(5)]
for i in range(5):
arr[i] = list(map(int, input().split()))
def iswall(testX, testY):
if testX < 0 or testX >=5:
return Fals... | [
"silverlyjoo@gmail.com"
] | silverlyjoo@gmail.com |
9322317b4bb5487ab61113643c8fa3661466d872 | 491dd5a8f7f53ff05e4efc599bd6f32e840c8806 | /scripts/compose_api.py | 222b4da5e4e41e1d6039090fbf5b875e0c36ec6e | [
"CC0-1.0"
] | permissive | forgeRW/WALKOFF | 9b50ffa4eff42286d709c1f13069f836a3af59b5 | 52b688f427e5360f7acab6cdae701fe67f7a0712 | refs/heads/master | 2021-01-17T04:25:21.154843 | 2018-02-06T19:39:27 | 2018-02-06T19:39:27 | 82,941,065 | 0 | 0 | null | 2017-02-23T15:29:03 | 2017-02-23T15:29:03 | null | UTF-8 | Python | false | false | 1,390 | py | import logging
import os
import sys
sys.path.append(os.path.abspath('.'))
from walkoff.config import paths
logger = logging.getLogger(__name__)
def read_and_indent(filename, indent):
indent = ' ' * indent
with open(filename, 'r') as file_open:
return ['{0}{1}'.format(indent, line) for line in fil... | [
"Tervala_Justin@bah.com"
] | Tervala_Justin@bah.com |
045662700cb8d10239ea775433abc0ace3cb9c57 | c71b00b530efe7e8fe4e666b9156ff30976bd72d | /_draft/coordtransform/coordtransform.py | e917e065e6bf08cbb18cf2aff5008487a6d0c4a0 | [
"MIT",
"BSD-3-Clause"
] | permissive | IfeanyiEkperi/autopew | af714537d3438100d01d3c988930fa3e8d270581 | 964c379f7e3a7b15259672df37629baee46e158c | refs/heads/master | 2020-08-15T12:14:01.165061 | 2019-10-15T16:08:27 | 2019-10-15T16:08:27 | 215,340,368 | 0 | 0 | NOASSERTION | 2019-10-15T16:02:54 | 2019-10-15T16:02:53 | null | UTF-8 | Python | false | false | 3,094 | py | import logging
import itertools
from autopew.transform import (
affine_from_AB,
transform_from_affine,
inverse_affine_transform,
)
class CoordinateTransform(object):
library = []
def __init__(self, source, dest, *args, **kwargs):
self.forward = None
self.reverse = None
se... | [
"morgan.j.williams@hotmail.com"
] | morgan.j.williams@hotmail.com |
e7f8f5e7cca6d1c74426ec28482859f35ce8c31f | e68a59efcf3591a7efedb2f66d26d0f01607e288 | /simulator/main.py | 07df44ae9e227d6cdcb934e3c3462ced3d185252 | [] | no_license | fagan2888/core-1 | efc0fb9e4a3139c1174d7caf539163f34b966898 | 97930712b71ebdb6ad587a2dee2bf6b8ac0dbac7 | refs/heads/master | 2020-12-01T22:46:18.836996 | 2017-12-15T16:43:30 | 2017-12-15T16:43:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | from flask import Flask, url_for
from flask import jsonify
from flask import request
from connectivity.bitstamp_api import BitstampAPI
from constants import SIMULATOR_REPLAYER_DATA_FILE
from constants import SIMULATOR_USE_REPLAYER, API_URL_V2_TICKER
from constants import TRADING_DEFAULT_CURRENCY_PAIR
from simulator.lo... | [
"premy@reactive.co.jp"
] | premy@reactive.co.jp |
4a4a7d6aa42fc38b95683641c7ce780278223e45 | fff94a56c2992b6930d9964f63dba1ddb32c3193 | /setup.py | 5c6206248384bc36faeeb5f551001680e81a22bd | [
"MIT"
] | permissive | veltzer/pylogconf | fb94ee0bf16168ab7d169b10038fa28f72df5f3b | b1a965fa25199768ad1432990ac6ec8d9bb9ac5e | refs/heads/master | 2023-07-06T11:12:30.656069 | 2023-07-01T14:40:27 | 2023-07-01T14:40:27 | 78,429,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | import setuptools
def get_readme():
with open('README.rst') as f:
return f.read()
setuptools.setup(
# the first three fields are a must according to the documentation
name="pylogconf",
version="0.0.37",
packages=[
"pylogconf",
],
# from here all is optional
descriptio... | [
"mark.veltzer@gmail.com"
] | mark.veltzer@gmail.com |
1e45b04e9cbebb6d6b50aa7b99ef5585e8af6788 | 23bc70263cc5355a247dd242d9dc35fb64d1ffbc | /portfoliyo/tests/view/users/test_forms.py | 12ec9945d65a75e37e0b901ac5174ffc64df7832 | [] | no_license | sdevani/portfoliyo | c8abd2c7328a4a7b75d630db5ff74f2e20bbd749 | e85ae37ccbc404a26751539ea756fce484b2db62 | refs/heads/master | 2021-01-16T23:01:27.906389 | 2013-04-26T19:29:34 | 2013-04-26T19:29:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,808 | py | """Tests for user-related forms."""
from django.test.utils import override_settings
from portfoliyo.tests import factories, utils
from portfoliyo.view.users import forms
class TestRegistrationForm(object):
"""Tests for RegistrationForm."""
base_data = {
'name': 'Some Body',
'email': 'some@exa... | [
"carl@oddbird.net"
] | carl@oddbird.net |
4bc4e9d63a5d83d6aa54557c80f837a7946c8875 | a97f60aaa261a0e54f674c2bd1587694c41fd50d | /bitsofpluto.py | 89c242e1333178b1686d146641168d9a19c5a9ac | [] | no_license | asears/bitsofpluto | 7c4bef986740d4518972e3c1c8418db97e173600 | 1cb6a80a9863e429693640b36608e6f2b360895e | refs/heads/master | 2020-11-26T10:34:50.752896 | 2019-09-16T07:15:00 | 2019-09-16T07:15:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Twitter bot. Tweeting a different bit of Pluto every six hours.
Photo by NASA's New Horizons spacecraft.
https://www.nasa.gov/image-feature/the-rich-color-variations-of-pluto/…
"""
from __future__ import print_function
import argparse
import os.path
import random
import sys
... | [
"hugovk@users.noreply.github.com"
] | hugovk@users.noreply.github.com |
6c3f7cf99c6ff475862e67b3741ac051d547d733 | 0db97db08743783019efe022190f409d22ff95bd | /aliyun/api/rest/Rds20130528DescribeSecurityIpsRequest.py | 8fba72f95fde069ab59928950cd9bfc12d5138d4 | [
"Apache-2.0"
] | permissive | snowyxx/aliyun-python-demo | 8052e2a165f1b869affe632dda484d6ca203bd9b | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | refs/heads/master | 2021-01-10T03:37:31.657793 | 2016-01-21T02:03:14 | 2016-01-21T02:03:14 | 49,921,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | '''
Created by auto_sdk on 2014.10.21
'''
from aliyun.api.base import RestApi
class Rds20130528DescribeSecurityIpsRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.DBInstanceId = None
def getapiname(self):
return 'rds.aliyuncs.com.Describ... | [
"snowyxx@126.com"
] | snowyxx@126.com |
b3f8a8af7f853575ba3e3f9c063337ec7292bf2e | 2f91251d41f32346f2f6eb5f0a6e957f253f005f | /bit manipulation/python/leetcode289_Game_of_Life.py | 02b9f64191bcfdb7a15dd241bf098483a1844fea | [
"Apache-2.0"
] | permissive | wenxinjie/leetcode | 8a5f666a1548d0d205cea09cb87fc2c65aec2b58 | c459a01040c8fe0783e15a16b8d7cca4baf4612a | refs/heads/master | 2020-03-24T21:56:00.662969 | 2018-09-06T21:25:58 | 2018-09-06T21:25:58 | 143,058,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py |
# According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970."
# Given a board with m by n cells, each cell has an initial state live (1) or dead (0). Each cell interacts with its eight neighbors (horizont... | [
"wenxinjieinnyc@gmail.com"
] | wenxinjieinnyc@gmail.com |
fae288441e708509afa743d412bbf58f5f5f1d63 | 6c37d1d2437a08e43b13d621d4a8da4da7135b3a | /yt_dlp/extractor/gotostage.py | 112293bef56c46a7ec238dacf85905690703b07e | [
"Unlicense",
"GPL-2.0-or-later",
"MPL-2.0",
"BSD-3-Clause",
"GPL-3.0-or-later",
"LGPL-2.1-only",
"BSD-2-Clause",
"MIT"
] | permissive | yt-dlp/yt-dlp | be040bde10cc40258c879c75ab30215686352824 | d3d81cc98f554d0adb87d24bfd6fabaaa803944d | refs/heads/master | 2023-09-05T21:15:21.050538 | 2023-09-05T20:35:23 | 2023-09-05T20:35:23 | 307,260,205 | 52,742 | 5,376 | Unlicense | 2023-09-14T05:22:08 | 2020-10-26T04:22:55 | Python | UTF-8 | Python | false | false | 2,727 | py | from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
try_get,
url_or_none
)
import json
class GoToStageIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?gotostage\.com/channel/[a-z0-9]+/recording/(?P<id>[a-z0-9]+)/watch'
_TESTS = [{
'url': 'https://www.go... | [
"noreply@github.com"
] | yt-dlp.noreply@github.com |
ea7239225feecb34fa333d4d532077816030969f | 312a86122cd08be0a8b7d0aacf87c8445aa6dead | /cmsplugin_blog/migrations/0007_auto__del_pygmentsplugin__chg_field_entry_tags.py | 19ebbd3218c864309e4b6d9f986286c701b081bb | [] | no_license | arnaudbenard/fle-website | f4cbaaa10d96de6eca9a18a5ba558480892d268d | d90d6be9909cd962ca22c72b3af8c43966a33e71 | refs/heads/master | 2021-01-21T01:33:37.534567 | 2013-05-21T22:16:12 | 2013-05-21T22:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | # encoding: 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):
pass
def backwards(self, orm):
pass
models = {
'cms.cmsplugin': {
'Me... | [
"jamalex@gmail.com"
] | jamalex@gmail.com |
cf4a5ac19de8240a8e03404df64ae4461030be7d | b6ff7b98079bcc8e7d8ad248e2de1f61bfabc0db | /multiples_sum_average.py | 296bbc63022fdf2e0973adcce247a959ee3cfd83 | [] | no_license | bakker4444/multiples_sum_average | 4b55808276dcd853d8688e255581c363b6c4cabb | efbc13dda3cc3459b44e0eb853dcb1f11ddca767 | refs/heads/master | 2020-03-09T08:35:48.384936 | 2018-04-09T00:17:45 | 2018-04-09T00:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Multiples
# Part 1 - print odd numbers from 1 to 1000
for i in range(1, 1001, 2):
print i
# Multiples
# Part 2 - print all the multiples of 5 from 5 to 1,000,000
for i in range(5, 1000001, 5):
print i
# Sum List
# Create a program that prints the sum of all the values in the list
a = [1, 2, 5, 10, 255, 3]
p... | [
"bakker4444@gmail.com"
] | bakker4444@gmail.com |
f8aaa4290c282f8bce6f11f9e721a671c7ceb6bc | 696dec6a8d1eba189d36049afedec36da47c08f3 | /dataset_utilities/_core_utils/_unet_attn.py | e87f1eef42bece2a971fe9aa3e96cd671e454917 | [] | no_license | JoelRaymann/polyp-segmentation | d99079f56bb3ae0886fb4c610c4abcc420137781 | 38da6c8bf47df2d2382d31f04faf63649b7d8ab0 | refs/heads/master | 2023-04-10T06:17:34.720237 | 2021-04-14T22:04:36 | 2021-04-14T22:04:36 | 358,053,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | """
Script Implementing U-Net Attention dice's data generator core functionality and all its helper functions
"""
# Import necessary packages
import tensorflow as tf
# Handling U-Net Attention dice
def _load_data_unet_attn(img, seg):
"""
Function to prepare the images and return the data in accordance with t... | [
"joelraymann@gmail.com"
] | joelraymann@gmail.com |
a5636d5656eb4187372f3d8f24142e7df9c7fa89 | 74473f650f36ad78d8eee801dcbdea8a4825d4a2 | /voltron/remote_debugger.py | 49b88fea297b75670aad50a41c662f1e7ac3c45f | [] | no_license | buttslol/voltron | f2a20d808ca165feaee80d3f6350695a4b7334fc | 1b00674276acd465ca69b78d6ea91aa9467ed92f | refs/heads/master | 2021-01-16T21:40:23.455224 | 2013-10-12T11:36:38 | 2013-10-12T11:36:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import pdb
import socket
import sys
# Trying to debug a quirk in some code that gets called async by {ll,d}db?
#
# from .remote_debugger import Rdb
# Rdb().set_trace()
#
# Then: telnet localhost 4444
socks = {}
# Only bind the socket once
def _sock(port):
if port in socks:
return socks[port]
s = soc... | [
"richo@psych0tik.net"
] | richo@psych0tik.net |
f64a3a28daa398d4d3500352ba4349bb2d82e861 | a404f504febdc835b69b72c4ac28b153885fc119 | /DungeonsKitgard/KithgardBrawl/KithgardBrawl3.py | edd41caf028501808f7009ea6568177cec161633 | [] | no_license | Chaboi45/CodeCombat | 6093a2eae29ef00c0c277653c4ffd075c9e2ac4c | 6e008a94e65bb72ca9292e303d391a4142de16f5 | refs/heads/master | 2021-07-02T23:24:52.050154 | 2017-09-21T07:42:21 | 2017-09-21T07:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | while True:
enemys = hero.findEnemies()
index = 0
closest_soldier = None
soldier_dist = 999
closest_archer = None
archer_dist = 999
closest = None
dist = 999
close_count = 0;
priority = None
while (index < len(enemys)):
distance = hero.distanceTo(enemys[index])
... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
1970ad0f37eea983e19e8edfa26c8d95bbb9dd45 | 70450f0c551adf47b450468e424f4f90bebfb58d | /dataclasses/resources/test/test_I3RecoPulseSeriesMapMask_pybindings.py | ef13165679e0c4ac5ba061bf58050c184596e4c9 | [
"MIT"
] | permissive | hschwane/offline_production | ebd878c5ac45221b0631a78d9e996dea3909bacb | e14a6493782f613b8bbe64217559765d5213dc1e | refs/heads/master | 2023-03-23T11:22:43.118222 | 2021-03-16T13:11:22 | 2021-03-16T13:11:22 | 280,381,714 | 0 | 0 | MIT | 2020-07-17T09:20:29 | 2020-07-17T09:20:29 | null | UTF-8 | Python | false | false | 2,626 | py | #!/usr/bin/env python
import unittest
import sys
from icecube import icetray,dataclasses
class I3RecoPulseSeriesMapMaskTest(unittest.TestCase):
def setUp(self):
self.frame = icetray.I3Frame(icetray.I3Frame.Physics)
pulses = dataclasses.I3RecoPulseSeriesMap()
key1 = icetray.OMKey(42, 7)
vec = dataclasses.I3R... | [
"aolivas@umd.edu"
] | aolivas@umd.edu |
d405f7741c1355404c6409d8713c69c2ea95bd5b | d873f3e6c322c930068711e795bfc635ed98fd6a | /mainapp/dao/Product/ProductImageDao.py | 2b71855d6d277ecf129805bf13f3abe5a28ce74d | [] | no_license | trunganhvu/personalweb | 3d912366045448b20ec9b7722e9190197cef4f61 | b7afc1a32665e578cbd546b1d2c375597b060914 | refs/heads/master | 2023-08-18T04:30:40.302843 | 2021-09-30T15:46:24 | 2021-09-30T15:46:24 | 401,062,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from mainapp.model.ProductImage import ProductImage
from datetime import datetime
from django.utils import timezone
def get_all_image_in_product(product_id):
"""
Get all image in product
"""
list_image = ProductImage.objects.filter(product_id=product_id)
return list_image
def get_one_image_in_prod... | [
"vutrunganh1@gmail.com"
] | vutrunganh1@gmail.com |
e36ef19e8a22954393d4d6945028df91e13e2086 | 2432996ac1615cd36d61f0feeff8a359d2b438d8 | /env/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_glib.py | c8a30ed042ca186466fa26d6db022c72d8a049d1 | [
"Apache-2.0"
] | permissive | Parveshdhull/AutoTyper | dd65d53ece7c13fbc1ead7ce372947483e05e2e3 | 7fabb30e15b770d790b69c2e4eaf9bbf5a4d180c | refs/heads/main | 2023-05-08T14:10:35.404160 | 2023-05-07T20:43:15 | 2023-05-07T20:43:15 | 315,415,751 | 26 | 18 | Apache-2.0 | 2023-05-07T20:43:16 | 2020-11-23T19:13:05 | Python | UTF-8 | Python | false | false | 560 | py | #-----------------------------------------------------------------------------
# Copyright (c) 2015-2020, PyInstaller Development Team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# The full license is in the file COPYING.txt, ... | [
"parvesh.dhullmonu@gmail.com"
] | parvesh.dhullmonu@gmail.com |
a899d1f17d27c6ae466745f8cc745c25c5c96fe5 | dbeb1e145eba012a200073038d8a8965ae0c6f5d | /MachineLearning/MLaPP/MixtureModels/mixGaussMLvsMAP.py | 29000b8f1da18391afd40be017477335f1fe0a4f | [] | no_license | hellJane/Python_DataAnalysis | b7027cb9d8e75a98b5626a58ee85b64f62c54c9c | 966ee5d732e074e9d124333f13d3e3e23ade1edc | refs/heads/master | 2021-05-17T01:57:24.092791 | 2017-12-01T15:32:32 | 2017-12-01T15:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,409 | py | import numpy as np
import scipy.stats as ss
import scipy.linalg as sl
import sklearn.preprocessing as sp
import matplotlib.pyplot as plt
from mixGaussFit import *
np.random.seed(0)
# Generate Data, fixed K = 3
def MakeCov(origMat, D):
m11 = origMat
m21 = np.zeros((D - 2, 2)) # origMat必须为(2, 2)
... | [
"noreply@github.com"
] | hellJane.noreply@github.com |
994b6e8a30b8b059f3ada223aba127b030d365e9 | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.7_pml/fdtd3d/naive/pml.py | f6409279223ecf31ef52a0051bacb14a914258ca | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,491 | py | from __future__ import division
import numpy as np
from kemp.fdtd3d.util import common
from fields import Fields
class Pml:
def __init__(self, fields, directions, npml=50, sigma_max=0.5, kappa_max=1, alpha_max=0, m_sigma=3, m_alpha=1):
common.check_type('fields', fields, Fields)
common.check_type... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
2235fd21f94d6254b3b1d3e5f3b629814f5968d0 | 3eff0ac549dd24fbade02d63c3a541ab88db1e5b | /ultimate_python/piglatin/piglatin/urls.py | 36974b0b38594cf07ff90f2517eda8e50821e820 | [] | no_license | lisaolson/udemy | 618410fb548db864b7878de5a2231e8293daa2ad | f40f947f6f79d692748f3efba02176fb360f0c4e | refs/heads/master | 2020-03-28T20:14:23.028759 | 2018-09-18T19:45:32 | 2018-09-18T19:45:32 | 149,051,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py |
from django.conf.urls import url
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', views.home, name='home'),
url(r'^translate/', views.translate, name='translate'),
url(r'^about/', views.about, name='about'),
]
| [
"olson.lisa94@gmail.com"
] | olson.lisa94@gmail.com |
ddf8b17e1cfddfb7814b90814bc8b3951bbd659a | e2081f2f873825a3cc8b529614eb784f5cf5e8c5 | /permutations2.py | 01b9d9cb4078de5aa049df6d087af9df69cca105 | [] | no_license | yilinanyu/Leetcode-with-Python | 17b454058c673381dbafa5a2a154c4e84b449399 | a55d2a3e383f858477170effbf8f6454e5dfd218 | refs/heads/master | 2021-01-21T04:55:31.025194 | 2016-07-11T20:10:18 | 2016-07-11T20:10:18 | 36,630,923 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | class Solution:
# @param num, a list of integer
# @return a list of lists of integers
def permuteUnique(self, num):
length = len(num)
if length == 0: return []
if length == 1: return [num]
num.sort()
res = []
previousNum = None
for i in range(length):
... | [
"ly783@nyu.edu"
] | ly783@nyu.edu |
1be5bd328ca7a8254b806833e9502b03feb20333 | e71ecfe679dd8c800e8b0960d4ba68e19401a4fc | /get_actual_news_from_rss_ya/webserver/common.py | 7a3cea0336a59bdd1034fefde3a6b74098048a66 | [] | no_license | igizm0/SimplePyScripts | 65740038d36aab50918ca5465e21c41c87713630 | 62c8039fbb92780c8a7fbb561ab4b86cc2185c3d | refs/heads/master | 2021-04-12T10:48:17.769548 | 2017-06-15T18:53:04 | 2017-06-15T18:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,908 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# # TODO: костыль для винды, для исправления проблем с исключениями
# # при выводе юникодных символов в консоль винды
# # Возможно, не только для винды, но и для любой платформы стоит использовать
# # эту настройку -- мало какие проблемы могут вс... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
ffe374573d512fb90b5fbf3f362cd00fdf9f63c2 | d8820bda3cfa93151255cd07290332dd50cb3ae4 | /videos/utils.py | 0b223f7d5fe234e867666b39f953345d0cede7cb | [] | no_license | defance/video-app | 249aae4f81a4b89ce4b8ddadbf43332a05beb137 | c8c3128dbd41a651d26cba0022d80bb644eaaf8a | refs/heads/master | 2021-01-23T06:20:29.072852 | 2017-06-01T07:32:00 | 2017-06-01T07:32:00 | 93,020,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,495 | py | from __future__ import unicode_literals
from collections import defaultdict
from django.core.files.storage import DefaultStorage
from django.utils.translation import pgettext_lazy as _p, ugettext_lazy as _u
from re import search as re_search
from subprocess import check_output
from .models import Video
TIME_DICT = {... | [
"defance@gmail.com"
] | defance@gmail.com |
659fef29c9cd67a7f70fdb47f11176ca70521932 | 4c76c88f6421abb52a9e68ae48d33f32b0fcf5af | /google_api/run.py | b8dd4c7394f9e5d4177cc85794e3d903ab8a0d13 | [
"Apache-2.0"
] | permissive | aperturetechnology/starthinker | 76ba1d8883dbcf32eff4164f57f4342d0b912b70 | fd2d70e39f05cb29afc65b8a78ea38441e1e2b9a | refs/heads/master | 2020-04-09T22:19:14.752457 | 2018-11-27T13:52:49 | 2018-11-27T13:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | ###########################################################################
#
# Copyright 2018 Google Inc.
#
# 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
#
# https://www.apache.org... | [
"kenjora@kenjora-macbookair.roam.corp.google.com"
] | kenjora@kenjora-macbookair.roam.corp.google.com |
f0a35b9b28d1264951cbe6cb5db8880991747ed4 | d6d5a3e94b7c9762a08b9c6e986ea5c4d78bcd64 | /problems/543/test.py | 49f8f23776892759d236a9495951ad1a13303c91 | [] | no_license | neuxxm/leetcode | 46a9c247982834d769731b06cb9e9587f68702a5 | fd6c8082f81bcd9eda084b347c77fd570cfbee4a | refs/heads/master | 2023-02-10T22:37:18.966470 | 2021-01-07T08:48:50 | 2021-01-07T08:48:50 | 265,777,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#16:18-16:21
def f(x, z):
if x == None:
return 0
l = f(x.left, z)
r = f(x.right, z)
t = l + r
if t > z[0]:
z[0] = ... | [
"neuxxm@gmail.com"
] | neuxxm@gmail.com |
ac0286e178de05ae2d4c2c5440ca018bc646c444 | 0e51d1be69b26a4bc2020db597b187b8b4784614 | /OOP Prep Exam 22 Aug 2020/project/rooms/room.py | eb117f0a7b64c7b6aefe8313f1b8fd37421631cb | [] | no_license | dplamen/04_Python_OOP | 81dbc21095ca776d9ce034dbe9959ca4903c8d82 | cb0880a70c903e252958587d7051527527f57af4 | refs/heads/main | 2023-09-03T03:15:28.313039 | 2021-11-13T16:51:27 | 2021-11-13T16:51:27 | 427,719,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from project.appliances.appliance import Appliance
from project.people.child import Child
class Room:
def __init__(self, name, budget, members_count):
self.family_name = name
self.budget = budget
self.members_count = members_count
self.children = []
self.expenses = 0
@... | [
"plamenkostov@gmail.com"
] | plamenkostov@gmail.com |
aa0ed51e33bc948e2bb33149fca8c8d598babdae | 3902cee7d59ef823a4839576f984c63452dd0d23 | /Code/pso_v1_1.py | be60b6b90cb4669afa4acc58f3b006da7e8f8314 | [
"MIT"
] | permissive | zaman13/Particle-Swarm-Optimization-PSO-using-Python | 36a6f2afcf69fdd6d790b2f3a7f11a6a00a849d9 | 0b43df807182de993be4675cf683676f43531dd3 | refs/heads/master | 2023-01-12T07:23:37.686017 | 2022-12-27T04:06:28 | 2022-12-27T04:06:28 | 255,481,106 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,627 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 11 17:48:18 2020
@author: Mohammad Asif Zaman
Particle swarm optimization code
- General code, would work with fitness function of any dimensions (any no. of parameters)
- Vectorized fast code. Only one for loop is used to go over the iterations. Calculations
over all ... | [
"39745895+zaman13@users.noreply.github.com"
] | 39745895+zaman13@users.noreply.github.com |
337ede14a2180d4c5958f83d5e10ef2915d5266b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/295/66182/submittedfiles/testes.py | 3d79ec34943c90627f64c66fde2d551806cdeeb5 | [] | 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 | 163 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
print("Marlon Anderson Leandro de Lima Filho")
print("19")
print(11+1037)
print(9*35+160)/5
print("2.356,1925")
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
294e700bd5ebe76fe25fc3abeb124fb10fea0aae | 123e2e28017973eefedaffb273cb3a5164f582c5 | /tests/integrations/helpers.py | 68f57836c2a9a1c3fe727dc6531340c2feed0752 | [
"MIT"
] | permissive | pythonindia/junction | ef4c0bf64f8c396edd2407f6d91444ab60a36b02 | 208d1757bf39c4727cf78b52cd2285e902eec84d | refs/heads/master | 2023-08-17T09:30:50.961028 | 2023-08-10T06:44:34 | 2023-08-10T06:44:34 | 27,966,694 | 209 | 226 | MIT | 2023-08-10T06:44:35 | 2014-12-13T16:40:17 | Python | UTF-8 | Python | false | false | 241 | py | # -*- coding: utf-8 -*-
def assert_template_used(response, template_name):
res = False
for template in response.templates:
if template.name == template_name:
res = True
break
assert res is True
| [
"me@kracekumar.com"
] | me@kracekumar.com |
92531f86d7ff93e73ab54d1ab9712ecb3d1b4f22 | 67cf6d0e91253107a7d3a3dd879a31dcc1f5b36f | /0x0F-python-object_relational_mapping/3-my_safe_filter_states.py | 0bf2a4dcb156ae06009396d036ad114a99052c05 | [] | no_license | nzomobrian/holbertonschool-higher_level_programming | dd1646a2b8ccf21ecf41c39efbe8f7dac2771065 | 908ec393c1a3591dde500c10e8eb9c73e35d57f8 | refs/heads/master | 2023-03-19T00:16:15.893949 | 2020-05-15T00:55:06 | 2020-05-15T00:55:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/python3
# Lists all states that match the argument given without injection
import sys
import MySQLdb
if __name__ == "__main__":
db = MySQLdb.connect(host="localhost", port=3306, user=sys.argv[1],
passwd=sys.argv[2], db=sys.argv[3])
cur = db.cursor()
cur.execute("SELECT i... | [
"keener4christ@gmail.com"
] | keener4christ@gmail.com |
14d2fd5064686d8fcb86c06141f63c75e0dbfe99 | 8a82a83655f118208692e55d7804d9fa480ad4b6 | /src/dg/python_nlp/homework/ch09.py | df71319e81e7ee778a578cc8328adc2ac31535aa | [] | no_license | xenron/sandbox-da-python | 0814159da9a91923e4b66c5e40057e381f765e96 | ab8f1c0d57fdc6006355f613012b84165068c315 | refs/heads/master | 2020-04-12T05:41:33.182110 | 2016-12-14T22:57:33 | 2016-12-14T22:57:33 | 60,324,979 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,933 | py | # -*- coding: utf-8 -*-
from nltk.corpus import wordnet as wn
import nltk
from nltk.corpus import *
from matplotlib import pylab
from nltk import word_tokenize
import re
import jieba
import jieba.posseg
import jieba.analyse
from nltk.corpus import brown
import nltk
#2. ○ Write a tag pattern to match noun phrases cont... | [
"xenron@hotmail.com"
] | xenron@hotmail.com |
88003732df9aca53f2788ef6179f052a5afd181e | 52585c8d95cef15199c18ba1a76899d2c31329f0 | /01Learn Python The Hard Way/11_input.py | f05f4e063f81a0eb96aa73d24c9841a108683cd7 | [] | no_license | greatabel/PythonRepository | c7a952257303a21083ed7d535274c339362bd126 | 836fcdd3f5c1b150122302685104fe51b5ebe1a3 | refs/heads/master | 2023-08-30T15:56:05.376391 | 2023-08-26T03:34:14 | 2023-08-26T03:34:14 | 29,392,599 | 33 | 6 | null | 2023-02-14T13:33:21 | 2015-01-17T13:54:58 | Python | UTF-8 | Python | false | false | 428 | py | print "How old are you?",
age=raw_input()
print "how tall are your?",
height=raw_input()
print "how much do you weight?",
weight=raw_input()
print "So, you're %r old, %r tall and %r heavy." % (
age, height, weight)
print "How old are you?"
age=raw_input()
print "how tall are your?"
height=raw_input()
print "how much d... | [
"greatabel1@126.com"
] | greatabel1@126.com |
0c674243effa19ac035cb6a58cd3db0be2c5155b | 25d2afe5d12fe58a97da7b51e23fdc55929e38f5 | /create_nt_error_subset_results.py | 1ebafa06051b3e413a1190b4c64414c17a83fbab | [] | no_license | apmoore1/tdsa_comparisons | 071396efe0c5e0bad297119d2ce48bf0c1cbb42f | ba613afece15239e6a38f277c455a035739f0b2d | refs/heads/master | 2021-06-23T16:00:49.803589 | 2021-05-25T09:32:53 | 2021-05-25T09:32:53 | 225,565,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | from pathlib import Path
import pandas as pd
from target_extraction.data_types import TargetTextCollection
from target_extraction.analysis.sentiment_error_analysis import (ERROR_SPLIT_SUBSET_NAMES,
error_split_df, PLOT_SUBSET_ABBREVIATION,
... | [
"andrew.p.moore94@gmail.com"
] | andrew.p.moore94@gmail.com |
f9bda7505e7d23ead634575aa13665b1f86033de | c619ea6c1663c6ba0614b4dd63806cda5489adee | /wwtool/datasets/utils.py | 40da33f74a28ed219dced7e76fd44b7122a94162 | [] | no_license | ZhangRuixiang-WHU/wwtool | 35107e36fc4cce892c6d0c096ee90cbf8e1eeb97 | be87af3ad49a3befb331b2530e0cfdd5dd479a4a | refs/heads/master | 2020-12-02T15:26:22.383469 | 2019-12-25T15:02:42 | 2019-12-25T15:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | import os
import numpy as np
import shutil
import wwtool
def shuffle_dataset(origin_dataset_dir, trainval_dir, test_dir, trainval_rate=0.8, image_format='.png', label_format='.txt', seed=0):
"""Generate trainval and test sets from origin set by copying files randomly.
Arguments:
origin_dataset_d... | [
"jwwangchn@outlook.com"
] | jwwangchn@outlook.com |
157478c0e27dedf77864a8acc05f49de4067093d | 40f4908483b98fc4f370ff4f2d520e1284d045b3 | /phase02/immortals_repo/harness/pymmortals/generated/com/securboration/immortals/ontology/fm/feature/featureselectioncriterion.py | 9cab2e071f0f03b3b5559b965410bbe4239d1247 | [] | no_license | TF-185/bbn-immortals | 7f70610bdbbcbf649f3d9021f087baaa76f0d8ca | e298540f7b5f201779213850291337a8bded66c7 | refs/heads/master | 2023-05-31T00:16:42.522840 | 2019-10-24T21:45:07 | 2019-10-24T21:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from enum import Enum
# noinspection PyPep8Naming
class FeatureSelectionCriterion(Enum):
SELECT_ALL = 'SELECT_ALL'
SELECT_ZERO_OR_MORE = 'SELECT_ZERO_OR_MORE'
SELECT_ONE_OR_MORE = 'SELECT_ONE_OR_MORE'
SELECT_EXACTLY_ONE = 'SELECT_EXACTLY_ONE'
| [
"awellman@bbn.com"
] | awellman@bbn.com |
434de5a96c6a7a561dffb0b43c686a35b6c46e0e | d7b89e6090759d242f0afc8fd5d9f5200c17371a | /20190904/BOJ_12100_kyeong.py | 384dd43ab88deea6efbc4bf457ad2d902a7dedd8 | [] | no_license | JISU-JEONG/algorithm- | 545c5f758d2ca15d2d59a706ab75be8fb71e39a6 | 02ff7df63dd8a8518005d37a2edec67d158ae6db | refs/heads/master | 2020-09-13T14:15:59.919347 | 2019-11-19T23:57:40 | 2019-11-19T23:57:40 | 222,812,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import sys
sys.stdin = open('12100.txt')
from pprint import pprint
from itertools import product as pd
from copy import deepcopy
def rotate(a):
n = len(a)
copy = [[0] * n for _ in range(n)]
for i in range(n):
for j in range(n):
copy[j][n-1-i] = a[i][j]
return copy
def push(a):
... | [
"jindex2411@naver.com"
] | jindex2411@naver.com |
c1158f4b21ea5e89da3ac0828829fe99d4e66d9f | 4d1cc7c794039d31044eb94e38ab2ce4e4d62a72 | /0x0B-python-input_output/5-to_json_string.py | 451186994587818da5fcf46fb5179ba0ced72e8d | [] | no_license | icculp/holbertonschool-higher_level_programming | 2aca8f9df999b8931fb77280cb96ec16d9dffe07 | 698792cdc9096a17f2da0212d33518fda76b5213 | refs/heads/master | 2022-12-21T21:07:58.720950 | 2020-09-25T00:33:44 | 2020-09-25T00:33:44 | 259,339,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | #!/usr/bin/python3
"""
Task 5 Module
"""
import json
def to_json_string(my_obj):
"""
returns json representation of string object
"""
return json.dumps(my_obj)
| [
"icculp@gmail.com"
] | icculp@gmail.com |
fe2598c389279bc2342d80a08973218dd6bba537 | c2de8119d4347fc34fd101b1e98588f3624a1f0a | /bestiary/schema.py | bff17176857457dc1ff50c9a15fbccc921772d29 | [
"Apache-2.0"
] | permissive | claytondaley/swarfarm | d2b44628fda3d6c14046ea177337cfa42e87c3db | 10c0d381ab6d29d98c8cb88070a034f41d4028b6 | refs/heads/master | 2020-04-03T13:00:15.997376 | 2019-04-05T17:53:03 | 2019-04-05T17:53:03 | 155,271,052 | 0 | 0 | Apache-2.0 | 2018-10-29T19:44:30 | 2018-10-29T19:44:29 | null | UTF-8 | Python | false | false | 7,623 | py | import graphene
from graphene import relay
from graphene_django.filter import DjangoFilterConnectionField
from graphene_django.types import DjangoObjectType
from .api_filters import MonsterFilter, SkillFilter
from .models import Monster, LeaderSkill, Skill, SkillEffect, SkillEffectDetail, Source, ScalingStat, MonsterC... | [
"peter@porksmash.com"
] | peter@porksmash.com |
9aff49686506d7d1a151a9dc5a4b2d8284b5c1ff | 01d390ba1ecdf8475ff6bc7655f3b1c86f4a4c10 | /phonepad_combinations.py | 9fc14da6f01a514e02f152208e6d0cb73ef4b0cf | [] | no_license | IkeyBenz/InterviewProblems | c7feb520119f15d18a21108720229c3d0b9b4951 | 55171fc49d30ae21f58000ea14d2a40f1a81d019 | refs/heads/master | 2020-06-02T15:36:44.466766 | 2020-05-12T00:49:47 | 2020-05-12T00:49:47 | 191,211,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | letters = {
'1': '',
'2': 'abc',
'3': 'def',
'4': 'ghi',
'5': 'jkl',
'6': 'mno',
'7': 'pqrs',
'8': 'tuv',
'9': 'wxyz',
'0': ' '
}
# Ikey's Way
def combos(nums, curr=[]):
if len(nums) == 0:
return curr
if len(curr) == 0:
return combos(nums[1:], list(lett... | [
"ikey.benz@gmail.com"
] | ikey.benz@gmail.com |
d7133de348ab246f13ca3e1239122d3158674487 | 1f7fce552cc68731f683ded3f831e8f4650c7197 | /Axis16/Axis16/wsgi.py | 5139839645ceae062b39e5a7f5253511300b6776 | [] | no_license | tanaypatil/axis-website | 3985068cf1c52bb038b7174cbdf938b8b4084c03 | b5eda2906150a38b1bb0daf8b23c9194572b849c | refs/heads/master | 2020-06-13T03:14:05.855948 | 2019-06-30T13:12:11 | 2019-06-30T13:12:11 | 194,514,303 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Axis16 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"tanaypatil197@gmail.com"
] | tanaypatil197@gmail.com |
2e991e0e4ef010d0049ff75e77aae840060ece57 | 577a40ff1c84d28b88a9ade84d265587d28ed2a3 | /0715/02.TextProcessingAPI.py | 708becb6d522488c2c631c2e45a37169303e25c6 | [] | no_license | bosl95/MachineLearning_Note | b167c182fcf5186f6466b8b062cde83b076b0b04 | 934714c5a62e4864f2b5338153c3aaeb3363abe9 | refs/heads/master | 2022-12-06T20:58:20.457567 | 2020-09-05T16:18:11 | 2020-09-05T16:18:11 | 279,835,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | # STEP 1
from keras.preprocessing.text import Tokenizer
samples = ['The cat sat on the mat.','The dog ate my homework.']
# 가장 빈도가 높은 1000개의 단어만 선택하도록 tokenizer 객체 생성
tokenizer = Tokenizer(num_words=1000) # 자동으로 단어마다 번호를 부여하는 사전 생성.
tokenizer.fit_on_texts(samples)
# STEP 2. 문자열을 정수 인덱스의 리스트로 변환
sequences = tokenize... | [
"bosl95@naver.com"
] | bosl95@naver.com |
868da6ad7de2e92037f68b84e2de141d81e5376e | 9d6e747ed7204555199ece2033decff978295a09 | /Programmers/그리디/구명보트.py | e397a45f8b8c3318aef387de4ebb6add75f97628 | [] | no_license | leejaeyeong/Algorithm | 5b47ed9aa241990945cbf2451afe7f084984ced5 | 72072d1e0c28e72075fc00db9239a4bd444b68b6 | refs/heads/master | 2021-08-08T10:57:07.345943 | 2021-07-11T15:01:59 | 2021-07-11T15:01:59 | 238,156,464 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | ''' 무인도에 갇힌 사람들을 구명보트를 이용하여 구출하려고 합니다.
구명보트는 작아서 한 번에 최대 2명씩 밖에 탈 수 없고, 무게 제한도 있습니다.
예를 들어, 사람들의 몸무게가 [70kg, 50kg, 80kg, 50kg]이고 구명보트의 무게 제한이 100kg이라면
2번째 사람과 4번째 사람은 같이 탈 수 있지만 1번째 사람과 3번째 사람의 무게의 합은 150kg이므로
구명보트의 무게 제한을 초과하여 같이 탈 수 없습니다.
구명보트를 최대한 적게 사용하여 모든 사람을 구출하려고 합니다.
사람들의 몸무게를 담은 배열 people과 구명보트의 무게 제한 l... | [
"dldustn14@gmail.com"
] | dldustn14@gmail.com |
6b13c2d1b3333eb858d2f7ff6f6803b8edbd5e52 | f9e441608cbca1fd2a39de27cdc187cf676ef159 | /matplotlib/example26.py | 3a47fec94e67faf5639d189d893932d8b226684f | [] | no_license | tisnik/jupyter-notebook-examples | cdded1ce63f6637c76c33adbfb25d9efc13b5fcf | 66974b0590f8beef39ed9d364c9d2b1ee3bd2e63 | refs/heads/master | 2023-07-07T04:43:11.787115 | 2021-08-05T07:16:20 | 2021-08-05T07:16:20 | 257,216,516 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # Jupyter Notebook
#
# Dvacátý šestý demonstrační příklad:
# - zobrazení 3D grafu funkce typu z=f(x,y)
from mpl_toolkits.mplot3d import axes3d
from matplotlib import cm
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.gca(projection='3d')
delta = 0.1
# průběh nezávislé proměnné x
x = n... | [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
4de9459362cd51256cf0acfb5269084fb1d69ad5 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/show_user_repository_auth_response.py | dbf5288a6fb5ffa67492b7a9cdb0a81de2d9138d | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,467 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowUserRepositoryAuthResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
1a1971c072b24595aa808de9a2af6fbceee0b46b | e03ffd4821bd278da3b0835cd8630b12958d4236 | /sply/grammar.py | 94b2ee96b6e7368047387bcdd4fca2b58a1f4c68 | [] | no_license | RussellLuo/sply | c659a33eabefe935db06ace846fe30e31bd841ba | d6f11f155803b874890428d173b45ee3f2b3fe76 | refs/heads/master | 2016-09-06T04:40:04.977841 | 2014-06-11T15:48:29 | 2014-06-11T15:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ### decorators ###
def token(regex):
def wrapper(func):
func.grammar = {
'type': 'token',
'definition': regex
}
return func
return wrapper
def production(rules):
def wrapper(func):
func.grammar = {
... | [
"luopeng.he@gmail.com"
] | luopeng.he@gmail.com |
62c3025dd72cbd79bb67fc3b146f88adb5c53aa9 | 13830825b25ec01ec2874094a10f36b4b1336ac7 | /tf/languages/python/triggers/run.py | 1e16f634c9f07393965d850f7e8e98d94d0d240a | [] | no_license | yurimalheiros/textflow | db62047b43c44d43c6efc67ad94f8118f984b076 | c21ddf8aba58dc83d58a8db960d58d91ee2e5c74 | refs/heads/master | 2016-09-10T14:47:18.159229 | 2011-11-02T14:26:31 | 2011-11-02T14:26:31 | 1,927,215 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # -*- coding: utf-8 -*-
#######################################################################
# Copyright © 2007-2009 Yuri Malheiros.
# Copyright © 2009 TextFlow Team.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# the Fr... | [
"yurimalheiros@gmail.com"
] | yurimalheiros@gmail.com |
8d7b14dcccda8ae9f7b2682fb5da36c5f06b8731 | 0534c55fd45878ee1ef12d6a9a2903c51cc6cd56 | /backend/task_profile/models.py | 0876c0b99a2c9c7e831a67edea5d5986436f2d77 | [] | no_license | crowdbotics-apps/lcbo-go-19501 | a7db5aa2265da23ab294de9c683951e54522ce22 | 96dd8ad7ce8c3dcb9526e2197a952d9b8028898f | refs/heads/master | 2022-11-26T07:36:01.090189 | 2020-08-11T20:23:52 | 2020-08-11T20:23:52 | 286,839,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | from django.conf import settings
from django.db import models
class Notification(models.Model):
"Generated Model"
type = models.CharField(max_length=20,)
message = models.TextField()
user = models.ManyToManyField("users.User", related_name="notification_user",)
timestamp_created = models.DateTimeF... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bc7dfd6b2743ba065db5069510e641c5b4e23c65 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/class스타크래프트프로젝트전반전_20200709104854.py | 1d7e1775de7a8f0280b1c3b4921af09ff2aa05b5 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | # 일반 유닛
class Unit:
def __init__(self, name, hp, speed):
self.name = name
self.hp = hp
self.speed = speed
print("{0} 유닛이 생성되었습니다.".format(name))
def move(self, location):
print("[지상 유닛 이동]")
print("{0} : {1} 방향으로 이동합니다. [속도 {2}]"
.format(self.name, ... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
1a6b70ae45e9fc29904a01cf685b64bf43a59743 | 0e9bd59e25d45adbc859cd187a5ebb00da4685ea | /tests/photometric_database/test_lightcurve_database.py | d3b21ca0bbdd55f26a9d21f5bb7727df9bc803b3 | [
"Apache-2.0"
] | permissive | REStickland/ramjet | cc836090d5afb868db4317bf9cb7416c26061c02 | ad69e284d5c45b6bd5e3d34e861e5d7b106d4589 | refs/heads/master | 2021-03-10T14:08:42.759728 | 2020-03-02T17:44:34 | 2020-03-02T17:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,968 | py | """
Tests for the LightcurveDatabase class.
"""
from typing import Any
from unittest.mock import Mock, patch
import numpy as np
import tensorflow as tf
import pytest
import ramjet.photometric_database.lightcurve_database
from ramjet.photometric_database.lightcurve_database import LightcurveDatabase
class TestLightcu... | [
"golmschenk@gmail.com"
] | golmschenk@gmail.com |
22cd7d391cc9fbe273b5040f9df01d41521f8ad7 | 722ace259d9a92a7923a7ebd32608acbfddb073d | /Tag04/doz_a7.py | 69786d28c2f05b2563f8c924bbd53b3c49e9c70d | [] | no_license | anna-s-dotcom/python_final | 19da2d0d2a420f4d54bb2a9760593b655230dcea | 41275625c8905f55a7561cd50df51bbb7d4c39bd | refs/heads/master | 2020-12-08T15:30:04.336376 | 2020-01-10T10:17:15 | 2020-01-10T10:17:15 | 233,017,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | # Aufgabe 7)
# Erstelle eine Funktion, welche eine Zahl und einen Befehl übergeben bekommt.
# Der Befehl soll „lin“ oder „quad“ sein.
# Je nach dem soll die Funktion ausgeführt werden:
# lin = 4*x+5
# quad = 4*x2+5*x+6
# 1) Nutze ein if/else Konstrukt.
def linquad(x, f = 'lin'):
if f == 'lin':
re... | [
"noreply@github.com"
] | anna-s-dotcom.noreply@github.com |
524077872b20c6c49333c3c0e864ffe3114cc7fb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2423/60899/261347.py | b07973f6cbd23601c9ce7344d44ec4505e1dade2 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | numOftests = int(input())
for i in range(numOftests):
list2 = list(map(int, input().split()))
length = list2[0]
list0 = list(map(int,input().split()))
list1 = list(map(int, input().split()))
list0.sort()
list1.sort()
lengthOfzero = len(list0)
list0.extend(list1)
list0 = list(set(list... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d191aa6944595ac49641b74daa31bb3cd5b34f34 | e5dad8e72f6c89011ae030f8076ac25c365f0b5f | /caret_scripts/smooth_medial_wall.py | 3ba2096b84ab538f66083977dd8820563423cb95 | [] | no_license | djsperka/caret | f9a99dc5b88c4ab25edf8b1aa557fe51588c2652 | 153f8e334e0cbe37d14f78c52c935c074b796370 | refs/heads/master | 2023-07-15T19:34:16.565767 | 2020-03-07T00:29:29 | 2020-03-07T00:29:29 | 122,994,146 | 0 | 1 | null | 2018-02-26T16:06:03 | 2018-02-26T16:06:03 | null | UTF-8 | Python | false | false | 4,412 | py | #!/usr/bin/python
#
# Imports
#
import os
import sys
#
# Global Variables
#
progName = "/Users/john/caret5_osx/caret_source/caret_command/caret_command"
#progName = "caret_command"
areaColorFileName = "Geography.areacolor"
separateBorderProjectionFileName = "MedialWall_Separate.borderproj"
mergedBorderProjection... | [
"michael.hanke@gmail.com"
] | michael.hanke@gmail.com |
2fda7128de47a50c6ff375d42206469d47952984 | 68a088346090ae4e929c208906b14181da0f92f6 | /第一阶段/2. Python01/day03/exercise/01_str_rectangle.py | 753207cbeb3641e48a534062ed628f0b1941a2de | [] | no_license | LONG990122/PYTHON | d1530e734ae48416b5f989a4d97bd1d66d165b91 | 59a2a2a0b033c8ad0cb33d6126c252e9d574eff7 | refs/heads/master | 2020-07-07T09:38:03.501705 | 2019-09-23T16:28:31 | 2019-09-23T16:28:31 | 203,316,565 | 0 | 0 | null | 2019-10-23T15:02:33 | 2019-08-20T06:47:44 | HTML | UTF-8 | Python | false | false | 401 | py | # 01_str_rectangle.py
# 写一个程序,打印一个高度为4的矩形方框
# 要求输入一个整数,此整数代表矩形的宽度,输出此矩形
# 如:
# 请输入宽度: 10
# 打印如下:
# ##########
# # #
# # #
# ##########
w = int(input("请输入宽度: "))
line1 = '#' * w
line2 = '#' + ' ' * (w - 2) + '#'
print(line1)
print(line2)
print(line2)
print(line1) | [
"54302090+LONG990122@users.noreply.github.com"
] | 54302090+LONG990122@users.noreply.github.com |
f8edac2da5a69b605d4359c2f8f216e0976f96d9 | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/techsupport/techsupport_vcsdebug.py | 5ab73d62848edc2f0279a82d14c841396240e154 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 820 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class GeneratesAvcsDebugFile(A10BaseClass):
""" :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py`
URL for this object::
`https://<Hostname|Ip address>//axapi/v3/techsupport/vcs... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
556f9a4f94a174e5febc071241d4cba8792817cd | fcecbfe364306bd4da1ac316d38e5dc4fc7942a2 | /model_util/test_diag.py | 2ab0bbfe19f5ccae96a8533164a08bc8ef4c68f1 | [] | no_license | darothen/crm-tools | ce7cda50ca8d49c801848d60a83372a6f3eef273 | 095da56aba6911e472093a2ebae8a73503ff0855 | refs/heads/master | 2016-09-06T14:53:28.088780 | 2014-05-05T14:12:13 | 2014-05-05T14:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from crm_io import read_diag, save_diag
#filename = "/Volumes/legion_home/models/crm71_2d/OUTPUT/DIAG"
filename = "/Volumes/legion_storage02/crm_testing/kshv_2d_largedomain/kshv_500ccn_100in/DIAG"
nz = 65
spmd = True
ts = 20
nt = read_diag(filename, nz, spmd)
all_time, all_tdiag = save_diag(filename, nz, nt, spmd)
pr... | [
"darothen@mit.edu"
] | darothen@mit.edu |
76a142e0bf1248e45f81f90da77866782710a3d6 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Terracortril_med_Polymyxin_B_eye_or_ear_ointment_SmPC.py | 1981573d4c6dae71344cf9ec7d1423466396b794 | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | {'_data': [['Common',
[['Eye',
u'Sveda vid instillation. Vid l\xe5ngtidsbehandling hornhinneskada och intraokul\xe4r tryckstegring.']]],
['Uncommon', [['Eye', u'Aktivering av viruskeratit.']]],
['Rare', [['Eye', u'Korneaperforation, katarakt vid l\xe5ngtidsbehandling.']]]... | [
"daro@daro-ThinkPad-X220.(none)"
] | daro@daro-ThinkPad-X220.(none) |
970db4f9221a1a43b4d38341b08f46bb0370580c | 25403dd331c6f273190461ed57c12c9f633853b9 | /chiton/core/environment.py | 1e0113b34cfc4ea1dddea7ec596c12a3ce322fb8 | [] | no_license | justinlocsei/chiton | d1a91a57ff90f16aa375d0f4c6a0b093a66d2d38 | 6ca38962d08a6ca154434a1f78235155710ffeec | refs/heads/master | 2021-03-27T15:10:07.811691 | 2017-01-30T01:18:33 | 2017-01-30T01:18:33 | 48,400,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | import os.path
import re
from voluptuous import All, Length, Invalid, MultipleInvalid, Schema
from chiton.core.exceptions import ConfigurationError
# All known log levels
LOG_LEVELS = ('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL')
def use_config(user_data={}):
"""Load an external JSON configuration file.
... | [
"justin.locsei@gmail.com"
] | justin.locsei@gmail.com |
59f8c7d57f0528ed4dfb3503f979f7eb63155d5d | 149660428ec7570b02b9e8b3d494dcd548e80005 | /01-04_python基础/05_高级数据类型/hm_17_字符串的查找和替换.py | 9801733fcb09d371234b006f6705420a8c32271f | [] | no_license | kenzzuli/hm_15 | 603eb178e476f946eb57b1cdf0c85ba5d65e8d58 | db8a6d13776e55aa4e05ff9f39e9c8e98d59d8ee | refs/heads/master | 2023-08-07T01:57:01.993474 | 2021-09-23T15:49:19 | 2021-09-23T15:49:19 | 359,322,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | hello_str = "hello world"
# 1.判断是否以指定字符串开始
print(hello_str.startswith("hello")) # 大小写敏感
# 2.判断是否以指定字符串结束
print(hello_str.endswith("orld"))
# 3.查找指定字符串
# index同样也可以查找指定的子字符串在大字符串中的索引
print(hello_str.find("wo"))
print("*" * 100)
print(hello_str.rindex('o'))
print(hello_str.index("o"))
print(hello_str.rindex("r"))
pri... | [
"820710063@qq.com"
] | 820710063@qq.com |
36070783ac0da6e39d149ff6a9e6e406d58e1bb4 | 5e1bf5340b28288027d946f136fa0838ca2621dd | /RL_Udemy/optimistic_initial_values.py | 05f34a93a3960471d89c25c00170bf64dd4f12cf | [] | no_license | DavisDataScience/DataInterviewPrep | 5964006933fa8dd1f9b684be94744f5c9505eadb | 55921a8752e349b9cd08833148c38ebb9210d4ed | refs/heads/master | 2020-12-30T11:02:49.782409 | 2018-04-20T07:11:11 | 2018-04-20T07:11:11 | 98,841,799 | 5 | 0 | null | 2017-11-08T09:54:28 | 2017-07-31T02:52:15 | HTML | UTF-8 | Python | false | false | 1,662 | py | # https://deeplearningcourses.com/c/artificial-intelligence-reinforcement-learning-in-python
# https://www.udemy.com/artificial-intelligence-reinforcement-learning-in-python
import numpy as np
import matplotlib.pyplot as plt
class Bandit:
def __init__(self, m, upper_limit):
self.m = m
self.mean = upper_limi... | [
"fespinosa@ucdavis.edu"
] | fespinosa@ucdavis.edu |
a386ad32ce1908a2c38fe109aef2276beec8507d | d2c54233a96b0de3137d320a86de726f87f6d3b4 | /cnn/struct/updateset_module.py | 420fca72eebd6129c8038d6af319637cdeb3851b | [
"MIT"
] | permissive | hslee1539/cnn | aa93e6c41e994b409b5ebcd6e1abfaef98cd0c60 | 816418af0a0057d777f41ac072c3a97fea7e2027 | refs/heads/master | 2020-05-01T13:30:25.781805 | 2019-09-10T08:47:24 | 2019-09-10T08:47:24 | 177,493,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | from import_lib import lib
from tensor.main_module import *
from ctypes import Structure, c_int, POINTER, c_float
# Tensor는 POINTER(_Tensor) 임
class _UpdateSet(Structure):
_fields_ = [
('delta', Tensor),
('value', Tensor),
('momnt', Tensor)
]
lib.cnn_create_updateset.argtypes = (Tens... | [
"qq1539@naver.com"
] | qq1539@naver.com |
25a9c9a9109a8396fc521ce6af6ccc72553ddb0a | 77717d0024c8597fec83600259ea5547abbc183a | /configs/guided_anchoring/ga_retinanet_r50_fpn_1x_coco.py | 1c8c581bccb439fbd4d5f7a4f67777162361b1f8 | [
"Apache-2.0"
] | permissive | fengyouliang/wheat_detection | 0a090ef5eda7f2c5463996f4795f9ce06dd04050 | d056123426a1260c29b486cbb8e44a88a0a3c5bc | refs/heads/master | 2022-11-17T15:09:29.113493 | 2020-07-18T13:47:34 | 2020-07-18T13:47:34 | 276,532,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | _base_ = '../retinanet/retinanet_r50_fpn_1x_coco.py'
model = dict(
bbox_head=dict(
_delete_=True,
type='GARetinaHead',
num_classes=80,
in_channels=256,
stacked_convs=4,
feat_channels=256,
approx_anchor_generator=dict(
type='AnchorGenerato... | [
"1654388696@qq.com"
] | 1654388696@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.