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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d62e3114c938f8066748a59033197841c83d092 | 38c10c01007624cd2056884f25e0d6ab85442194 | /tools/perf/benchmarks/oilpan_gc_times.py | c3f5b719abd9f6355c6fda65d9aa2034f6e95c51 | [
"BSD-3-Clause",
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 1,819 | py | # Copyright 2014 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.
import os
from core import perf_benchmark
from benchmarks import blink_perf
from benchmarks import silk_flags
from measurements import oilpan_gc_times
impo... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
78afb386dbd29f9461bc89541805aa59c30fc061 | ccc3aae73d0af165ff46ad746346266f3d3b28bc | /jupyter-u07157019/Quiz_Python_20190309.git/Quiz_2.py | 61137f2579c159ef81c0d7456f630fd37f5d18b6 | [] | no_license | oilmcut2019/final-assign | bc016cf1d88d15772b47a80e9e9b65e15e3de599 | c93cd80463deff2419e7b2e3fd049b318d88ef50 | refs/heads/master | 2020-07-09T06:24:32.932035 | 2019-08-23T12:52:08 | 2019-08-23T12:52:08 | 203,905,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | #!/usr/bin/env python
# coding: utf-8
# In[11]:
a = int(input("a="))
print(a*5)
# In[ ]:
| [
"07158031@o365.mcut.edu.tw"
] | 07158031@o365.mcut.edu.tw |
44779715634b7d0be9f742f099d7334188af37de | 3c17e189622018329bc0ebd8523eae8db9f3112a | /ykdl/extractors/laifeng.py | 87bb8386a706e5db2e0919438b1978e95a037840 | [
"MIT"
] | permissive | YU-zreo/ykdl | 167c9b8715a1cecf57c18bf60c7da3b22437ad06 | b59dacd78bcec79d208d7cb86b86fa65428e386a | refs/heads/master | 2020-12-02T12:47:01.113309 | 2017-07-07T12:39:20 | 2017-07-07T12:39:20 | 96,594,712 | 1 | 0 | null | 2017-07-08T03:57:22 | 2017-07-08T03:57:21 | null | UTF-8 | Python | false | false | 1,298 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ykdl.util.html import get_content
from ykdl.util.match import match1
from ykdl.extractor import VideoExtractor
from ykdl.videoinfo import VideoInfo
import json
from random import randint
class Laifeng(VideoExtractor):
name = u'laifeng (来疯直播)'
def prepare(se... | [
"zhangn1985@gmail.com"
] | zhangn1985@gmail.com |
b0e97adb0b4e9e4235e176cd5f8513cdd8603e65 | f98b2b2db076bd230d19344c9864fc9006437892 | /blog/api/views.py | 2d7b3174d8a33d30cdb56349e810878888c6cfe0 | [] | no_license | azizcruz/blog_system_using_django | 0267afdbfaef6e39053e033f3b2007f1b438d9e4 | 43ce4b66530a26cab0fa19d864376367d9bdb7a4 | refs/heads/master | 2020-04-14T07:01:28.313820 | 2019-01-07T14:41:24 | 2019-01-07T14:41:24 | 163,701,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | from rest_framework.generics import ListAPIView, RetrieveAPIView, UpdateAPIView, CreateAPIView, DestroyAPIView, RetrieveUpdateAPIView
from blog.models import Post
from .serializers import (PostAllSerializer, PostCreateSerializer, PostUpdateSerializer)
from django.shortcuts import get_object_or_404
from rest_framework.p... | [
"edu@localhost.localdomain"
] | edu@localhost.localdomain |
01580da34a52293c3745612958526f4eeb70e901 | a4e4c3faa29043fc80f62a8442e2f8333cd23933 | /Octave/Octave_network_mish.py | b492721ccd77b64977fd897d8af678df2dd37ac1 | [] | no_license | FangYang970206/Intrinsic_Image | 652ab87c2d95b400cf80c6a49d1863a40d1cba07 | 3b8ec261b7b3aeaa1c611473f53fb4e23b82893b | refs/heads/master | 2023-01-21T05:18:40.748488 | 2020-11-24T02:22:00 | 2020-11-24T02:22:00 | 228,824,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,030 | py | import torch
import torch.nn as nn
if __name__ == "__main__":
from OctaveConvMish import *
from mish import Mish
else:
from .OctaveConvMish import *
from .mish import Mish
def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1):
"""3x3 conv with padding"""
return nn.Conv2d(in_planes... | [
"15270989505@163.com"
] | 15270989505@163.com |
b2bddf74b9765b58896a083b21777e217d1ea28c | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/python/platform/flags.py | bce803c14e5636472ba737e4ca30f6bd2788b068 | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,115 | 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... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
f30fb1e3b91eb6b4efb089c670caede7d682da82 | b0c2e4521a8adea421e9b0f7b68dcc5f38101c15 | /mltoolkit/mlmo/utils/helpers/pytorch/general.py | 9f70862561e44d76139720bd470cc427b9ee1ee1 | [
"MIT"
] | permissive | developerdrone/FewSum | 8e21521f2b059f38b0dd6d4409c854fd66e6ffdb | ca20e6eb8f93d21f9215a9cbf5a171b56600e3c1 | refs/heads/master | 2023-07-01T03:57:20.338058 | 2021-07-30T17:53:37 | 2021-07-30T17:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,422 | py | from torch.nn.parallel import DataParallel
import numpy as np
def parallelize_submodules(parent_module):
"""Wraps a parent's sub-modules with a DataParallel object that permits multi
GPU usage.
"""
for mod_name, module in parent_module.named_children():
setattr(parent_module, mod_name, DataPar... | [
"bulletdll@gmail.com"
] | bulletdll@gmail.com |
6e937e289b9326326e0af3c26c2d78e6773a9369 | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/CDPSM/Connectivity/IEC61970/Wires/ACLineSegment.py | 2e23976d7e0bb7b9d4f16d20b67f3f4f0aa0d1ce | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 3,374 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
e32577e4103bf3ec62b7403e118294394bdc9405 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/86/usersdata/169/58202/submittedfiles/pico.py | 7b81c838036027537e7be1bdc1b3a2e8d50a5c42 | [] | 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 | 417 | py | # -*- coding: utf-8 -*-
def pico(n):
cont=0
for i in range(0,len(n),1):
if n[i]<n[i+1]<n[i+2]:
cont=cont+1
return True
else:
return False
n=int(input('Digite a Quantidade de Elementos da Lista:'))
l1=[]
for i in range(1,n+1,1):
v=int(input('Digite os Elem... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
04a5594ee4c76c29df372deeb56f474c075316f3 | 78ff881fc0d6b9b9b1bd75d022e2dfc26ef09109 | /problemeditor/admin.py | a2553730366e0e0f05bc8ffb45c09ab3c0983e80 | [] | no_license | hbgolze/umoeditor | 05238985acc6e1bab5e09e301505e0bd656850a3 | 9e96823ec335d2fd3ec11bd54b942e0a5cbd4fa2 | refs/heads/master | 2023-01-07T05:42:39.793846 | 2023-01-06T03:01:12 | 2023-01-06T03:01:12 | 87,245,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from django.contrib import admin
from .models import Problem,UserProfile,ProblemVersion,Comment,Solution
# Register your models here.
admin.site.register(ProblemVersion)
admin.site.register(Solution)
admin.site.register(Comment)
admin.site.register(Problem)
admin.site.register(UserProfile)
| [
"hbgolze@gmail.com"
] | hbgolze@gmail.com |
8252f3f3157eba9f2504b724c068c15c17fb4576 | bbd4d550b5f60763872b2ecd58c5b2bde21ecd0b | /transf_v1/test.py | e414d945e73bc8a8310323b22ee0d69428615b06 | [] | no_license | MaLei666/workflow_test | 4894a96f1b9858e6beb454f62cb6acad34e8fc3e | 312d23e36086bb0967f20b290a3f9b1f5f6be184 | refs/heads/master | 2022-07-31T00:13:46.307736 | 2020-05-24T14:32:18 | 2020-05-24T14:32:18 | 266,557,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | #-*- coding:utf-8 -*-
# @author : MaLei
# @datetime : 2020/5/6 9:12 上午
# @file : test.py
# @software : PyCharm
from SpiffWorkflow.specs import WorkflowSpec,Simple,MultiInstance,Join
from workflowexecute import taskSpec
class workflowSpec(WorkflowSpec):
def __init__(self,nodeList,startTask,tasks,multis,joins,end... | [
"826908021@qq.com"
] | 826908021@qq.com |
160946fb015cc6f211cfac5a740ff19a9eb16548 | 8caaa41882f41f087a22b08b5ede6be1d613b72c | /unit_20/mysite/blog/migrations/0009_auto_20150806_0710.py | f4a01540f7f58c43ec9fc4be5d5dcacd5e03e110 | [] | no_license | janusnic/django-21v | 76045989259d118d19e57e8282de5949cb356f67 | 1d091a3de4210b29116c67970cbb28124c825b93 | refs/heads/master | 2020-04-04T14:20:57.484251 | 2015-08-11T13:03:53 | 2015-08-11T13:03:53 | 38,960,748 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,853 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import blog.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blog', '0008_userprofi... | [
"janusnic@gmail.com"
] | janusnic@gmail.com |
9db04f6d3c5860f8d19751002fb616b15f74f03b | 91616318174793f40c7f57a4306bcaaf9c534640 | /deep_sarsa_rl/launcher.py | 5f6f1901abe9d745562b366413b06da1136ced9c | [] | no_license | wulfebw/deep_sarsa_rl | 3a2402f3cc03e4ed9eabf7ac4c70e0bbfea0358b | 65891526a7abaf60f600522a6a37a81cfb0383c9 | refs/heads/master | 2021-01-09T21:55:34.760530 | 2015-12-17T09:17:02 | 2015-12-17T09:17:02 | 48,152,953 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,854 | py | #! /usr/bin/env python
"""This script handles reading command line arguments and starting the
training process. It shouldn't be executed directly; it is used by
run_nips.py or run_nature.py.
"""
import os
import argparse
import logging
import ale_python_interface
import cPickle
import numpy as np
import theano
impor... | [
"blake.w.wulfe@gmail.com"
] | blake.w.wulfe@gmail.com |
b94b984a7deac526248c23ffe3f41eb2e92a20ba | 5243510626ccbdc63a289f86b6100219424d8270 | /schemas.py | 3fff4884e2c8180433216d7c5f1313d0dd805ca8 | [
"Apache-2.0"
] | permissive | stretchcloud/square | 3c805ac2a068d83a637972edc4b9bb1334439300 | 69fcf795a6e7395b3b6ab45c01cc3e4fbcedef97 | refs/heads/master | 2020-05-03T14:20:03.010913 | 2019-03-08T17:25:34 | 2019-03-08T17:31:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | """Define the structure of the stripped manifest schema.
A stripped manifest is a sub-set of a normal manifest. The remaining keys
capture the salient information about the resource.
For instance, almost all manifest can have a "status" field. Albeit useful for
diagnostics, it makes no sense to compute diffs of "stat... | [
"olitheolix@gmail.com"
] | olitheolix@gmail.com |
5a057832b4ced55f122d653f6e831272253d8557 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/Summer20UL16/QCD_Pt_1000to1400_TuneCP5_13TeV_pythia8_cff.py | 2b248bb8482ec3cb4afc0af7ac8a199eef522f81 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 78,193 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer20UL... | [
"noreply@github.com"
] | TreeMaker.noreply@github.com |
7094ffc0c0e597c651355337c6699bce0804eabd | 06f7ffdae684ac3cc258c45c3daabce98243f64f | /vsts/vsts/release/v4_0/models/manual_intervention.py | 86d5efb21c10d8aa1c31cd877b58adc0f8a788de | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kenkuo/azure-devops-python-api | 7dbfb35f1c9637c9db10207824dd535c4d6861e8 | 9ac38a97a06ee9e0ee56530de170154f6ed39c98 | refs/heads/master | 2020-04-03T17:47:29.526104 | 2018-10-25T17:46:09 | 2018-10-25T17:46:09 | 155,459,045 | 0 | 0 | MIT | 2018-10-30T21:32:43 | 2018-10-30T21:32:42 | null | UTF-8 | Python | false | false | 3,274 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tedchamb@microsoft.com"
] | tedchamb@microsoft.com |
13114c273417f48ec702e1bf7383e6fd1e47adb7 | ee3e0a69093e82deff1bddf607f6ce0dde372c48 | /BOJ/DFS/BOJ_2606.py | c4858706e6c142789bd13de9abbac3d3349f79c0 | [] | no_license | cndqjacndqja/algorithm_python | 202f9990ea367629aecdd14304201eb6fa2aa37e | 843269cdf8fb9d4c215c92a97fc2d007a8f96699 | refs/heads/master | 2023-06-24T08:12:29.639424 | 2021-07-24T05:08:46 | 2021-07-24T05:08:46 | 255,552,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | n = int(input())
m = int(input())
data = [[] for _ in range(n + 1)]
for _ in range(m):
a, b = map(int, input().split())
data[a].append(b)
data[b].append(a)
visited = [False for _ in range(n + 1)]
def dfs(idx):
for i in data[idx]:
if not visited[i]:
visited[i] = True # 이렇게 되면 어떤 의... | [
"cndqjacndqja@gmail.com"
] | cndqjacndqja@gmail.com |
fdeb78e7717864afde15defe79fc4a804b3db8e3 | e4806fe953cbb76a6baf1f27ae40562561014f36 | /python_base/2019.1.8/homework3.py | 1fa0f2b94a63ab036d85f5621cc8344683b86a56 | [] | no_license | LaBravel/Tedu-code | 701daa5f49ab42129db0a4684c8e7b3cbcbe1d65 | 9c93e9d88e940e627c7a3d1e8c2519035b462086 | refs/heads/master | 2020-04-27T16:33:55.535261 | 2019-03-08T07:27:29 | 2019-03-08T07:27:29 | 174,486,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | L = []
x = 1
y = 0
for i in range(0,20) :
x += y
L.append(x)
y += x
L.append(y)
print(L)
| [
"463662798@qq.com"
] | 463662798@qq.com |
903567e226b68cd30cfdd8a7699c372b90598296 | 5be277b4fe94e5f7bc330436543ac75206013d74 | /zjazd_online_10.05.2020/zad_6.py | 681168fb9bed42db2e9feece69dc1890abe6dcb4 | [] | no_license | rafal-mizera/ALX_programowanie_w_pythonie | 9eacdeb69d44edbe8efc4f7a26988eb2e5b8c739 | 30ed5cd4dd1ce9f70fcaa6fbc06d8dc049d3a442 | refs/heads/master | 2022-09-21T10:55:20.670466 | 2020-06-06T09:38:51 | 2020-06-06T09:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | class Vector:
def _init_(self,x,y):
self.x = x
self.y = y
def __str__(self):
return f"<Vector>: x={self.x}, y={self.y}"
def __add__(self,other):
q = self.x + other.x
r = self.y + other.y
return Vector(q,r)
def __sub__(self, other):
q = self.... | [
"rafalmizera11@gmail.com"
] | rafalmizera11@gmail.com |
502b55d040ce545792419f3b87b0c99fdbcf54c3 | 3327a87cefa2275bd0ba90a500444f3494b14fdf | /captainhcg/py/321-create-maximum-number.py | 28d89e8feeb18830ae36e2a94c5ab1ba8b5a4fb0 | [] | no_license | captainhcg/leetcode-in-py-and-go | e1b56f4228e0d60feff8f36eb3d457052a0c8d61 | 88a822c48ef50187507d0f75ce65ecc39e849839 | refs/heads/master | 2021-06-09T07:27:20.358074 | 2017-01-07T00:23:10 | 2017-01-07T00:23:10 | 61,697,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | class Solution(object):
def maxNumber(self, nums1, nums2, k):
def prep(nums, length):
arr = []
drop = len(nums) - length
for n in nums:
while drop and arr and n > arr[-1] and drop:
arr.pop()
drop -= 1
... | [
"noreply@github.com"
] | captainhcg.noreply@github.com |
d0a40cab8eff9f4c1c6bdf3c662402e86d24e9f8 | 360e1f69f4c0923c5d79bc82aa33c0fd4e80b71e | /SEARCHING AND SORTING/Binary Search/SplitArrayCount.py | d127f0f146789822e1ffd61c92153565cc139fb3 | [] | no_license | Vijay1234-coder/data_structure_plmsolving | 04e52fe6c918313e13d39107a2ded8b47645bb12 | d449b266295d1ae55613cdcfd9b22ad9cee3dfbe | refs/heads/master | 2023-08-01T00:55:28.825972 | 2021-09-12T15:20:12 | 2021-09-12T15:20:12 | 387,782,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | '''binary search'''
'''Count of ways to split an Array into three contiguous Subarrays having increasing Sum
Difficulty Level : Hard
Last Updated : 11 May, 2021
Given an array arr[] consisting of non-negative integers, the task is to find the number of ways to split the array into three non-empty contiguous subarrays s... | [
"77201164+Vijay1234-coder@users.noreply.github.com"
] | 77201164+Vijay1234-coder@users.noreply.github.com |
f3ee70e2849ba61b44b7d787f66d70b6d2f46e4a | 2435bb2619d78f3cdf2f3d8f87fc7f8970fcbde2 | /Data type/eg2.py | 5ac0e20619b7132990169d0716a2dad964da9baf | [] | no_license | subreena10/data-type | 9f1efb2829fb2d460ee4ad04739b8a6cc6280158 | c38b976c78106c36dec2ba269055ef0233a2c543 | refs/heads/main | 2023-07-29T12:14:29.676808 | 2021-09-09T08:47:49 | 2021-09-09T08:47:49 | 404,649,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | var12='10'
var13= float(var12)
print(var12) | [
"noreply@github.com"
] | subreena10.noreply@github.com |
0e51e725cd7be867f39ee7464caaec5da74e8fa5 | c7d7bafdff29a9e0f91bec25e88b8db1b6694643 | /firebot/modules/list.py | 853bb3729231102da6ca9e89a1d49c9dd46c4359 | [
"MIT"
] | permissive | ultra-noob/Vivek-UserBot | ebedb80d98ca72fe1167211c14e32c017fcdf903 | 6c371a4aaa0c05397efa36237e9a2118deeb0d91 | refs/heads/main | 2023-07-11T16:52:37.696359 | 2021-08-11T03:38:15 | 2021-08-11T03:38:15 | 394,882,145 | 0 | 1 | null | 2021-08-11T06:11:45 | 2021-08-11T06:11:45 | null | UTF-8 | Python | false | false | 1,050 | py | import os
from uniborg.util import edit_or_reply, fire_on_cmd
@fire.on(fire_on_cmd(pattern="ls ?(.*)"))
@fire.on(fire_on_cmd(pattern="ls ?(.*)", allow_sudo=True))
async def lst(event):
genesis = await edit_or_reply(event, "Processing")
if event.fwd_from:
return
input_str = event.pattern_match.gro... | [
"noreply@github.com"
] | ultra-noob.noreply@github.com |
31854f0ee535942d5d05e426875d40c6a011e18e | 3cedc7c1519d3b013aad9ec4e6a6ee7834da7589 | /robotframework_code/SubLibrary.py | 6c837871d826f89d438ce51808b0e20e0d964a80 | [] | no_license | hzrg/songqin_course | 53437100669ee93d2ac5ecae5de938b1a4007d7f | 05e422ce34a42fd6d3819722a19252f8005e79ed | refs/heads/master | 2022-02-09T13:27:59.871400 | 2019-06-13T06:08:45 | 2019-06-13T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from robot.api import logger
class SubLibrary:
def __init__(self):
self.host = 20
self.port = 20
def printaddr(self):
logger.console('host:%s,ip:%s' % (self.host,self.port))
def returnint(self):
return 3
def _returnint2(self):
return 4 | [
"1174497735@qq.com"
] | 1174497735@qq.com |
a8e9127fda20b39551e5c7d48f8a13a48b4c8bf0 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /GP8Tywnn2gucEfSMf_22.py | a317173cb282078a4617d4cc251d9d10d4150cbe | [] | 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 | 300 | py |
def error(n):
if n in [1,2,3,4,5]:
x = {
1: 'Check the fan',
2: 'Emergency stop',
3: 'Pump Error',
4: 'c',
5: 'Temperature Sensor Error',
}
return '{}: e{}'.format(x.get(n), n)
else:
return 101
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b21fa5e74eabb62e33c8ead7c3467816cb70b48e | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /M/MaximumTastinessofCandyBasket.py | 81e9fdc7421e5813caded83b0beb49efd7ffcfc3 | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | '''
-Medium-
*Binary Search*
*Sorting*
You are given an array of positive integers price where price[i] denotes the price of the ith candy and a positive integer k.
The store sells baskets of k distinct candies. The tastiness of a candy basket is the smallest absolute difference of the prices of any two candies in th... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
abb626e9a094baba496158584dfe2ea61da0be7c | 9222114c0b39007eb1af715cf18fc95ff282b38c | /problems/1161. Maximum Level Sum of a Binary Tree/1 - DFS.py | 5a14280054702e66b7ab90cff2ad21a292d760cc | [] | no_license | Vasilic-Maxim/LeetCode-Problems | 1a2a09edca6489a349e5d69d087279630cff157d | 359f3b78da90c41c7e42e5c9e13d49b4fc67fe41 | refs/heads/master | 2021-07-10T22:03:29.327658 | 2021-06-07T12:42:52 | 2021-06-07T12:42:52 | 246,826,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def maxLevelSum(self, root: TreeNode) -> int:
"""
Time: O(2n) => O(n)
Space: O(n)
"""
def traverse(node: TreeNod... | [
"lmantenl@gmail.com"
] | lmantenl@gmail.com |
3d8ccc3fc50f561e60663d5a0a139e562c76489c | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /LMjficQtWW36a3by3_23.py | c964d2ac2c63aa3ca853bd45ae794ee7d97e4f06 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | """
Given a list of numbers and a value `n`, write a function that returns the
probability of choosing a number greater than or equal to `n` from the list.
The probability should be expressed as a percentage, rounded to one decimal
place.
### Examples
probability([5, 1, 8, 9], 6) ➞ 50.0
probability([7... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
682a9c1f16b8e3b6d79477c6ea6353163d27de43 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/stdlib-131.py | 503731fe2bc680c9b4d09e4c9159d352413fbc84 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
145e91953a657670904769f5014af295692e6b55 | f6078890ba792d5734d289d7a0b1d429d945a03a | /hw5/submissions/guptanavika/hw5/HW5_2_resonance_templ.py | 0b3a3eea3d7281d53233f49d0f7b02428f57ac1c | [] | no_license | huazhige/EART119_Lab | 1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0 | 47931d6f6a2c7bc053cd15cef662eb2f2027712c | refs/heads/master | 2020-05-04T23:40:53.709217 | 2019-06-11T18:30:45 | 2019-06-11T18:30:45 | 179,552,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,204 | py | #!/bin/python2.7
"""
solve second order, non-homogeneous ODE: undamped harmonic oscillator
- compare analytical and numerical
ODE: my''(t) + gy'(t) + ky(t) = f(t)
w0**2 = k/m
ana. solution:
y(t) = F/( (2*w0**2)*sin(w0*t)
TODO - compare Euler and Runge-Kutta
"""
from __future__ import division
im... | [
"hge2@ucsc.edu"
] | hge2@ucsc.edu |
c46bbb76933293608eb9c45b1825aeba56d3c8c3 | b503e79ccfca67c8114f5bd7a215f5ae993a0ba4 | /airflow/providers/amazon/aws/hooks/glacier.py | c2e0509ef2f8a26dfb4c4472b1b469bb266532b9 | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT"
] | permissive | github/incubator-airflow | df1d9780f862ea1df8261ea6015dd50a4583f983 | 73f70e00b9fd294057f8ca6b714a85622f6d5dd5 | refs/heads/gh-2.0.2 | 2023-07-29T18:08:43.140580 | 2022-09-14T18:23:42 | 2022-09-14T18:23:42 | 80,634,006 | 24 | 27 | Apache-2.0 | 2023-04-18T04:24:36 | 2017-02-01T15:34:55 | Python | UTF-8 | Python | false | false | 3,048 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | github.noreply@github.com |
1c1d1843a7a927847cee9214d55759fd5518a604 | e43ff8f429a6938a4f16edc4b2c94976acbff157 | /ABC/ABC 184/c.py | ad2c3227e76adbf51c9115c034286e8a9c88896c | [] | no_license | Soule50431/AtCoder | 4fcd6ab6b771d55c90dc62aedd75eb81fd067466 | 118ac5d03630ce143fb50153402eee38e988ae0c | refs/heads/master | 2023-06-18T13:07:13.843361 | 2021-07-14T01:56:20 | 2021-07-14T01:56:20 | 357,827,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | r1, c1 = map(int, input().split())
r2, c2= map(int, input().split())
a = r2 - r1
b = c2 - c1
# print(a, b)
dist = abs(a) + abs(b)
if a == 0 and b == 0:
print(0)
elif a + b == 0 or a - b == 0 or dist <= 3:
print(1)
elif dist <= 6 or dist % 2 == 0 or abs(a-b) <= 3 or abs(a+b) <= 3:
print(2)
else:
prin... | [
"h.ekcero.el6no11@outlook.jp"
] | h.ekcero.el6no11@outlook.jp |
e68c627178f258993ae9788742873ac0fe2f579e | 8e4bb58199f712320c34e7fc03e3f9315c256fc9 | /flower/__init__.py | 37e173df334a842c9b352de1744593f9c7650861 | [
"MIT",
"Unlicense",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wangkai2014/flower | 7f68eb567bbc40e095d3c01e4c611794c5e28d2d | fca53d83bc067e669215cf37a94ea1269108499d | refs/heads/master | 2021-01-19T19:08:26.819875 | 2013-09-14T08:00:57 | 2013-09-14T08:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # -*- coding: utf-8 -
#
# This file is part of flower. See the NOTICE for more information.
from flower.core import (
# tasks functions
tasklet, get_scheduler, getruncount, getcurrent, getmain,
set_schedule_callback, schedule, schedule_remove, run,
# channel functions
channe... | [
"bchesneau@gmail.com"
] | bchesneau@gmail.com |
bbc5631ce969144db738dc5411a64b7f73342635 | 25afd608797a3e9ee643aa82a5b205692e4c29ec | /marco/scenarios/migrations/0017_auto__add_field_scenario_geometry_final_area.py | ffd830b11023b0a9112fc6324ab44dc4149c9b9f | [] | no_license | Ecotrust/marco-portal | 24ab791456e8a88f6bce6d403b8d2e79e4a68eca | 99830dcfb1f4526b53c5f9f9110600a32433f702 | refs/heads/master | 2021-07-09T03:36:55.951038 | 2018-07-19T22:35:36 | 2018-07-19T22:35:36 | 3,433,293 | 3 | 2 | null | 2021-06-10T17:36:11 | 2012-02-13T19:30:00 | PHP | UTF-8 | Python | false | false | 9,634 | 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):
# Adding field 'Scenario.geometry_final_area'
db.add_column('scenarios_scenario', 'geometry_fin... | [
"vagrant@precise32.(none)"
] | vagrant@precise32.(none) |
b252f275b2357968468f439201dd6fdf2e9747a6 | 3e5150447a2c90c26354500f1df9660ef35c990b | /filesystem/copy_tree/copy_tree/copy_tree/current_file.py | aed69c3aab6b245dcf4faabc364b6e239ce5b030 | [] | no_license | kilirobbs/python-fiddle | 8d6417ebff9d6530e713b6724f8416da86c24c65 | 9c2f320bd2391433288cd4971c2993f1dd5ff464 | refs/heads/master | 2016-09-11T03:56:39.808358 | 2013-03-19T19:26:19 | 2013-03-19T19:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | import inspect, os
# http://stackoverflow.com/questions/50499/in-python-how-do-i-get-the-path-and-name-of-the-file-that-is-currently-executin
print inspect.getfile(inspect.currentframe()) # script filename (usually with path)
print os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) # script dir... | [
"cancerhermit@gmail.com"
] | cancerhermit@gmail.com |
e9fdb0e813ade55a40da9899781fa6882459b5d4 | 9bc29d87c699f3bf391f3e6bf82c3913d9c8ad87 | /src/oci/dns/dns_client.py | baf549889497a9d3835d57b877ce70487536c3df | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"UPL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mmorianos/oci-python-sdk | 276ea5ac26ba55a57ad6c2a112336ff3ebbcc7a1 | 538a1a4b409d03fd203746ba4df24da32ccb42f6 | refs/heads/master | 2020-04-01T21:44:52.533562 | 2018-10-04T18:17:12 | 2018-10-04T18:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,376 | py | # coding: utf-8
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
from __future__ import absolute_import
from oci._vendor import requests # noqa: F401
from oci._vendor import six
from oci import retry # noqa: F401
from oci.base_client import BaseClient
from oci.config import get_config... | [
"mike.c.ross@oracle.com"
] | mike.c.ross@oracle.com |
f07d7e199a40697df0948792c12fed45ef2cdd39 | 4a1336d6d3de077aab654bd315ddeb4cf261256f | /exception_usage.py | 02be1544fb8e77dacc0669cf9522312441bdd2ad | [
"Apache-2.0"
] | permissive | barneyElDinosaurio/base_function | e84be6da0fc2681421cefdbb6792dfda74031fce | d4ecbd4e8dfe43ed9c02ac430ce4598bfca0fc25 | refs/heads/master | 2020-04-04T20:35:48.477181 | 2018-11-05T10:34:34 | 2018-11-05T10:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | # coding: utf-8
import logging
def case1():
try:
print('try')
r = int('a')
#r = int('a')
print('result is ',r)
except ZeroDivisionError as e:
print('exception ',e)
except IOError as e:
print('exception ',e)
except ValueError as e:
print('exceptio... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
58b623b7c8d291771de17a86ba8de39c5790de70 | a635c083db6122e958dd56720d8b1065e5f24484 | /Measure_Udacity.py | 511e6a59211976e6643895977fe0e9fecb5438f4 | [] | no_license | Khun-Cho-Lwin/Python-Files-IPND | f14dec938defecae6c85c1065ed9ac1f7fc84380 | 25269bff92c05d658469bb923cc9502e62227f8a | refs/heads/master | 2022-07-29T21:04:43.119356 | 2020-05-25T18:28:19 | 2020-05-25T18:28:19 | 266,686,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | def measure_udacity(name):
count = 0
for a in name:
if a[0] == "U":
count+=1
return count
print measure_udacity(["Andy","Uas","Bibi"])
print measure_udacity(['Umika','Umberto',"Uaaa"])
def measure_udacity(list):
count = 0
for name in list:
if name[0] == 'U':
... | [
"khuncholwin.2019@gmail.com"
] | khuncholwin.2019@gmail.com |
03ecc7b869e58856030eb7725cf0d87a4c5551a1 | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/website_crm_partner_assign/models/__init__.py | e17b45f69be9f474a34d7bc07cd3e98f00c81983 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from . import crm_lead
from . import res_partner
| [
"yasir@harpiya.com"
] | yasir@harpiya.com |
9e7b109cc4c104028ee77f84cebac5bcd1a7b026 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/16-sender_receiver_21.py | 21c3463bbfbd7a0f82f43477eba3777d984228d1 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,898 | py | from typing import FrozenSet
from collections import Iterable
from math import log, ceil
from mathsat import msat_term, msat_env
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type
from mathsat import msat_make_and, msa... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
a847d0ae9280cc98547055375c579885eacbe9c4 | 45467e07e77131f631d0865046dcc4d18f483601 | /src/Codeforces/round_462/B.py | 2f364e813d6033793d709af1f817de30a10c5d95 | [] | no_license | bvsbrk/Algos | 98374e094bd3811579276d25a82bbf2c0f046d96 | cbb18bce92054d57c0e825069ef7f2120a9cc622 | refs/heads/master | 2021-09-25T10:01:59.323857 | 2018-10-20T16:07:07 | 2018-10-20T16:07:07 | 98,708,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | if __name__ == '__main__':
n = int(input().strip())
if n % 2 == 0:
arr = ['8'] * (n // 2)
else:
arr = ['0'] * n
print(''.join(arr)) | [
"v.ramakoteswararao2015@vit.ac.in"
] | v.ramakoteswararao2015@vit.ac.in |
6046513f8b07cfed6b9bf9c90329b21f19dd4e20 | daac7d6afa1a45d7ff2515507abe9ac6c44aa366 | /dvf/middlewares.py | 6e985b3ab7933d2cb45feacd799615e57c16dc15 | [] | no_license | werberth/dvf-crawler | 0908ba3308102f3cafe871d1f9297183704ff60b | d22ccb4ded123c9ce774501f72ccf6abffe5d4a9 | refs/heads/master | 2022-08-14T17:45:38.688291 | 2019-06-19T01:44:39 | 2019-06-19T01:44:39 | 191,687,233 | 0 | 0 | null | 2022-07-29T22:34:44 | 2019-06-13T03:50:54 | Julia | UTF-8 | Python | false | false | 3,591 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class DvfSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy acts... | [
"werberthvinicius@gmail.com"
] | werberthvinicius@gmail.com |
ecac115342b16bd43b028b305147a511b996e85a | 568fa58296378fa129ab3349adf010daa44ed45b | /third_party/incubator-tvm/python/tvm/relay/adt.py | 30db22cf831419853904519588525e25fdf1bed0 | [
"Apache-2.0",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | mindspore-ai/akg | 37f471badc66de6a831f1f45ad84344f34d23ef2 | 99f33858d6972741748cbfc9ab0bf9600428fef7 | refs/heads/master | 2023-07-25T23:03:17.672665 | 2023-07-11T07:33:57 | 2023-07-11T07:33:57 | 274,077,856 | 319 | 36 | Apache-2.0 | 2021-12-30T13:43:08 | 2020-06-22T08:09:05 | Python | UTF-8 | Python | false | false | 6,761 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1027252281@qq.com"
] | 1027252281@qq.com |
eac2dc48a9dce657f7ac42b9c89f92b83537f2e0 | a82e04ad7cd47b7602d108af1c011554085b0ac7 | /person/models.py | 5301e9a6114ea3b90183b4377e078aa71c1a5ea1 | [] | no_license | tostan/rapidsms-community-apps | fb8fbc5b2d01290142935967f09ba108e9e4e158 | 4df8a18ef6d71864fafdc52deba3cf84d81895e5 | refs/heads/master | 2020-12-24T13:29:19.102087 | 2009-12-20T17:09:37 | 2009-12-20T17:09:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | #!/usr/bin/env pytho]
# vim: ai ts=4 sts=4 et sw=4
from django.db import models
from django.contrib.auth import models as auth_models
from django.core.exceptions import ObjectDoesNotExist
from datetime import datetime, date
from locations.models import Location
from reporters.models import Reporter
from logger.model... | [
"evanmwheeler@gmail.com"
] | evanmwheeler@gmail.com |
f4bc9932d0ac768e385ab35efed956f1952a8115 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/domain/AlipayOpenMiniVersionGrayOnlineModel.py | 8c820429a8d98cc229cf04eccc9e9f47ce4c61cc | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 1,488 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniVersionGrayOnlineModel(object):
def __init__(self):
self._app_version = None
self._gray_strategy = None
@property
def app_version(self):
return self... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
2fdddfbca377ee91fe90a07f2cabf188a27ec940 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pygments/styles/inkpot.py | d2eff2c8d58caa02669646f20e55f70afafd0e03 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 2,323 | py | """
pygments.styles.inkpot
~~~~~~~~~~~~~~~~~~~~~~
A highlighting style for Pygments, inspired by the Inkpot theme for VIM.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Tex... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
c4b6670603462b9eecf0b0d2557aae66550a602f | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/matplotlib/tests/test_agg_filter.py | fd54a6b4aa9e8406691b6b00709d60a66fd101d3 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 1,074 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.testing.decorators import image_comparison
@image_comparison(baseline_images=['agg_filter_alpha'],
extensions=['png', 'pdf'])
def test_agg_filter_alpha():
# Remove this line when this test image is regenerated.
plt.rcParams[... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
6bbc77dbc21827df67ceb832d6627b65f51d0bad | 74f2e26b17acd51f5eaea5df6a3921943ac29d98 | /pints/tests/test_mcmc_controller.py | fbdc128e611cd6b03562f19c323fd76ca906ea9c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | nandigama/pints | fd1ec6ee7e7a0d5f255f6c94b0da0a3cbb2e9efd | adf920adaf4f9e23f33bb978f79bc0c341acd4eb | refs/heads/master | 2020-07-13T03:13:33.740363 | 2019-08-26T21:15:24 | 2019-08-26T21:15:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,743 | py | #!/usr/bin/env python3
#
# Tests the MCMC Controller.
#
# This file is part of PINTS.
# Copyright (c) 2017-2019, University of Oxford.
# For licensing information, see the LICENSE file distributed with the PINTS
# software package.
#
from __future__ import absolute_import, division
from __future__ import print_funct... | [
"michael.clerx@cs.ox.ac.uk"
] | michael.clerx@cs.ox.ac.uk |
a8abd51161d1e17dfe37a43d580bd59b3332cc67 | 58959ee3e92cfb4dee217df94a1eb5d0fb4a238e | /qiskit/circuit/barrier.py | 7081fbcd66041ff588679c4dc0467143e509a2eb | [
"Apache-2.0"
] | permissive | AGaliciaMartinez/qiskit-terra | e5d143393ee31af28e7fefddc52219c375d54066 | e70ce504149b40287cfb8bff3ac525159dd46a40 | refs/heads/master | 2023-03-16T09:50:59.840070 | 2022-12-11T14:25:14 | 2022-12-11T14:25:14 | 219,828,601 | 0 | 0 | Apache-2.0 | 2023-03-06T13:15:22 | 2019-11-05T18:59:22 | Python | UTF-8 | Python | false | false | 1,555 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | AGaliciaMartinez.noreply@github.com |
d9896241931e5ccd845b5738eebb410612f7c029 | 373cd41477438cc8826cd2a2f8689be84f486339 | /msticpy/datamodel/entities/process.py | 5e597141b6a288786ee88e10fb237f4d57892696 | [
"LicenseRef-scancode-generic-cla",
"LGPL-3.0-only",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"ISC",
"LGPL-2.0-or-later",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"LGPL-2.1-only",
"Unlicense",
"Python-2.0",
"LicenseRef-scancode-python-cwi",
"MIT",
"LGPL-2.1-or-later",
"GPL-2.... | permissive | RiskIQ/msticpy | cd42d601144299ec43631554076cc52cbb42dc98 | 44b1a390510f9be2772ec62cb95d0fc67dfc234b | refs/heads/master | 2023-08-27T00:11:30.098917 | 2021-06-17T22:54:29 | 2021-06-17T22:54:29 | 374,787,165 | 1 | 0 | MIT | 2021-09-16T19:05:43 | 2021-06-07T20:05:09 | Python | UTF-8 | Python | false | false | 7,161 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Process... | [
"noreply@github.com"
] | RiskIQ.noreply@github.com |
fa64166185708b3611375088f9498dce2296f08f | e6b45b6cc01a921c3cc510f1a5fff3074dd6b2dd | /example/AFEM_1d_texs1.py | 962eddd494d8610f5239303603bdcb05493e0abf | [] | no_license | yoczhang/FEALPyExamples | 3bd339bd5f4576630f767a758da9590a1c068410 | 44d9acbecb528374bc67bba50c62711384228d39 | refs/heads/master | 2023-07-24T21:35:50.633572 | 2023-07-05T02:28:13 | 2023-07-05T02:28:13 | 208,667,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | #!/usr/bin/env python3
#
import sys
import numpy as np
from scipy.sparse.linalg import spsolve
import matplotlib.pyplot as plt
from fealpy.mesh import IntervalMesh
from fealpy.functionspace import LagrangeFiniteElementSpace
from fealpy.boundarycondition import DirichletBC
from fealpy.mesh.adaptive_tools import mar... | [
"yoczhang@126.com"
] | yoczhang@126.com |
e65fbf246fbd90c1bec177c0692ab802b82cbfc3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02614/s974333448.py | b8d680be9d3278f14552087b6affbfb72772e790 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | h,w,k = list(map(int,input().split()))
list1 = [[str(c) for c in input()] for j in range(h)]
count1 = 0
for i in range(1<<h):
for j in range(1<<w):
count = 0
for ia in range(h):
if i&(1<<ia):continue
for ib in range(w):
if j&(1<<ib):continue
i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f4926bf7999a1f91bff11d55582ef9c05b34799d | 42eaacac77b57d7bd1379afe249e2d3286596fe4 | /problems/0/problem014.py | 1533beb7ab246f3e104bde6ed1e808078722111c | [] | no_license | JustinKnueppel/ProjectEuler | 08256bda59a4ad6c40d33bada17c59e3338c3525 | 21a805a061383bc75a2ec6eb7473975e377e701a | refs/heads/master | 2021-09-27T07:46:03.073046 | 2018-11-07T01:20:37 | 2018-11-07T01:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # https://projecteuler.net/problem=14
# The following iterative sequence is defined for the set of positive integers:
# n → n/2 (n is even)
# n → 3n + 1 (n is odd)
# Using the rule above and starting with 13, we generate the following sequence:
# 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
# It can be seen that this... | [
"justinknueppel@gmail.com"
] | justinknueppel@gmail.com |
25c558abc54c72c052f030f51a1bcd5fac684b8d | a0a03b001685a46279905ebb56eadd92570e373a | /ansible_collections/netapp/azure/plugins/modules/azure_rm_netapp_snapshot.py | 5909bf083fdd3619042a0af9847e89d8eafcc511 | [] | no_license | madhuvinod23/netapp | 3ca801daad95bd45fa4e67bec9b0b0ea739b9888 | ae6c535f2200fcf9e0733d6f4e7b72baf80b5a2a | refs/heads/master | 2022-10-05T14:29:57.232419 | 2020-06-08T18:40:45 | 2020-06-08T18:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,073 | py | #!/usr/bin/python
#
# (c) 2019, NetApp, Inc
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | [
"carchi8py@gmail.com"
] | carchi8py@gmail.com |
854f77f3747c9ebd81414d6c8089869929a3766f | 24992bef3697db6782dcf53cd32828599412940c | /pages/urls.py | acbf037610277889152e44c63c3f40a4d0686f82 | [] | no_license | gibil5/odoo_tests | 0213a923f36728ac5da66d9b93fcc56f0d918a20 | 68a547138f64e9df7ee65f942bee163aafb7cd01 | refs/heads/master | 2020-09-27T15:39:43.644132 | 2019-12-15T00:44:29 | 2019-12-15T00:44:29 | 226,547,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | """
Pages - urls
"""
from django.contrib import admin
from django.urls import path, include
from . import views
urlpatterns = [
path('', views.home, name='home'),
# Test sites
path('test_dev', views.test_dev, name='test_dev'),
path('test_tacna', views.test_tacna, name='test_tacna'),
path('test_lima', vie... | [
"jrevilla55@gmail.com"
] | jrevilla55@gmail.com |
5133bbad25bb273b60868a2235c470adf3db85d9 | 5930e3a92b6fc7a136ac008901c49042c0bb8a10 | /app/tools/management/commands/assigngroup.py | e49fd8ff54086433d59e454a10ee30f706a8808f | [
"BSD-3-Clause"
] | permissive | nikdoof/test-auth | e2c944021a3df4967e5a584f1e534c1438025628 | 6f6acee9c8ab09e84e21fde2da0eff995b7232be | refs/heads/master | 2021-01-18T17:17:28.188641 | 2014-04-10T07:53:14 | 2014-04-10T07:53:14 | 18,625,008 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | #!/usr/bin/env python
import unicodedata
import re
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User, Group
from eve_api.app_defines import API_STATUS_OK
from sso.tasks import update_user_access
class Command(BaseCommand):
... | [
"andy@tensixtyone.com"
] | andy@tensixtyone.com |
e9c92359e1f46340ef08a461059a6d1c529e2ff1 | cbaa4e6f97f866bfda55658ff77220eb8b048e7e | /Mini-Max_Sum.py | 3dc9df138ae6c6302529ba7f232995502038fb9e | [] | no_license | MasumTech/HackerRank-Solution--Problem-Solving | a0789dc67e0f26ae601cf30efcd86f5c858a1390 | 56e8dbe18d99f7948e804f6c876971bd7ef524d8 | refs/heads/master | 2021-07-20T00:01:33.271417 | 2021-01-22T11:38:06 | 2021-01-22T11:38:06 | 236,140,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the miniMaxSum function below.
def miniMaxSum(arr):
arr.sort()
rst = int(0)
rst1 = int(0)
for i in range(0, 4):
rst1 = rst1 + arr[i]
print(rst1, end=' ')
for i in range(1, 5):
rst = rst + arr[... | [
"masumrezadiu@gmail.com"
] | masumrezadiu@gmail.com |
0a0b7fc969fe668d410ee048a5c7bbb5d9a3e940 | bd2c2f1c0c2c90992b2edf12c09fe82f9bd98c8f | /ple_diario_sunat_it/__openerp__.py | fedf9d4fd747ccc78d013a915e8e5eae8e1564f9 | [] | no_license | Makelator/ccia-itgrupo | 4e966f3232081b37fa1e4621026a4e21817fa5c8 | dee0f408ef964e216766652830fd4d6af9c533e1 | refs/heads/master | 2020-06-28T16:17:08.438192 | 2019-08-14T18:36:59 | 2019-08-14T18:36:59 | 200,279,452 | 1 | 1 | null | 2019-08-06T03:57:09 | 2019-08-02T18:18:53 | JavaScript | UTF-8 | Python | false | false | 321 | py | # -*- encoding: utf-8 -*-
{
'name': 'PLE DIARIO Sunat IT',
'category': 'account',
'author': 'ITGRUPO-COMPATIBLE-BO',
'depends': ['import_base_it'],
'version': '1.0',
'description':"""
PLE Diario y Ple Mayor
""",
'auto_install': False,
'demo': [],
'data': ['wizard/ple_diario_view.xml'],
'installable': True
}... | [
"angel_afla@hotmail.com"
] | angel_afla@hotmail.com |
343f43548bc9ba61899e23259c805124605c0dbe | 2c2d540b35dc6410b70580d4b022400541a35ed4 | /apythonicworkout_book/creation_one.py | 2b70c1b06fb557de4b0d58ccfd0ee777dbfc6186 | [] | no_license | ajakaiye33/pythonic_daily_capsules | 93429c6a60ea83ff2a3701f9f8969aa2139b7c96 | 3011ff10aeab7ab2477ab7bb30a8baed4efae567 | refs/heads/master | 2020-04-29T12:01:23.700883 | 2019-08-06T21:45:10 | 2019-08-06T21:45:10 | 176,122,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # to be continued ...
# def triple_double(num1, num2):
# """which takes numbers num1 and num2 and returns 1 if there is a
# straight triple of a number at any place in num1 and also a straight
# double of the same number in num2.If this isn't the case, return 0"""
# vt = 0
# frst = list(str(num1))
#... | [
"ajakzhedgar@gmail.com"
] | ajakzhedgar@gmail.com |
a6042f3977296e5701b0b63ad80d640bcc741eeb | d2bf6eab540edff00d28f2f75fa55a64dae5157f | /DataLoader.py | 699e5ab00b7c47ebe31a28a53941dc89e1017391 | [] | no_license | liuqiangict/SelfAttenation_Keras | 075ebc449ca1a2c674aadb51929d61a3ee9bcef3 | fba111440b1d50997b6772de3e1ccc466741d73d | refs/heads/master | 2020-04-08T07:39:46.244588 | 2018-11-26T09:54:56 | 2018-11-26T09:54:56 | 159,146,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py |
import os
import sys
import time
import random
import Utils
import h5py
import numpy as np
class TokenList:
def __init__(self, token_list, isCache=False):
if isCache:
self.id2t = token_list
else:
self.id2t = ['<PAD>', '<UNK>', '<START>', '<END>'] + token_list
self.t... | [
"qiangliu@microsoft.com"
] | qiangliu@microsoft.com |
ddbc0a6304e563b65b1a2d3df07ed7d915b916b1 | 14e19bcaaf917924e7bb78e4f7e6b42662ff5164 | /fancy_month01/day13_fancy/day13_1216_note/my_project02/common/list_helper.py | 41a7b55e37a2a6a9bb5034ae18f44f59f33714db | [] | no_license | Lzffancy/Aid_study | 5b3538443ca0ad1107a83ef237459b035fef70d0 | 4ba5e5045371490d68459edd1f0a94963e0295b1 | refs/heads/master | 2023-02-22T19:11:00.867446 | 2021-01-25T13:01:35 | 2021-01-25T13:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | class listhelper:
@classmethod
def list_helper(cls):
print('listhelper->list_helper') | [
"731566721@qq.com"
] | 731566721@qq.com |
69fde8e99ec6d0495e8b477a52dbfafdd546f520 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/test/test_idle.py | a6cffacd1458f0cf797f543ffa0d4f3284d4b808 | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:803b7d57f3d8ea315d4ce8f94ed2eeaac068994371443b68bb8254dbebfaf5bf
size 968
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
f01efb6b1463e1651173f0895c15ec7a3e142270 | de8f421fb42c5e38cac5045d26e7f3cb908b2411 | /main.py | 3ca3a877b12e271a56647e6af9350afb0959f824 | [] | no_license | stevecassidy/comp249-2019-jstore-starter | 0331f605cd0d8354478f00542a99c2ef30eb4173 | 457ebce5c1191f7383e7b3fcd69e7a09a6904ad6 | refs/heads/master | 2020-05-18T11:11:50.467463 | 2019-05-16T00:31:56 | 2019-05-16T00:31:56 | 184,372,006 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py |
from bottle import Bottle, template, static_file, request, redirect, response, run
import os
import model
import session
app = Bottle()
@app.route('/')
def index():
"""Deliver the index page. Really just a
static file but for convenience we do this through
the template"""
# an awful hack since sta... | [
"steve.cassidy@mq.edu.au"
] | steve.cassidy@mq.edu.au |
5f7f202d8576e034a2e40db302366b9b7bb32f3e | 8c09764a1258696c51ef9ef9c1c3bdc1b931b00d | /kotti__kotti/kotti/views/image.py | f1560f4dc176743a2218ccbdb636de78b9e6c25f | [
"BSD-3-Clause-Modification"
] | permissive | mindreframer/python-pyramid-stuff | 2178c4922adca15b7905bb0916c8f035ca495564 | 4b9034bdde63ac8dd799ae2050506edd164a96b7 | refs/heads/master | 2021-01-18T16:09:52.835796 | 2013-04-09T20:09:44 | 2013-04-09T20:09:44 | 9,325,528 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,573 | py | """
Views for image content objects.
"""
import PIL
from plone.scale.scale import scaleImage
from pyramid.response import Response
from pyramid.view import view_config
from pyramid.view import view_defaults
from kotti.interfaces import IImage
from kotti.util import extract_from_settings
PIL.ImageFile.MAXBLOCK = 3355... | [
"roman.heinrich@gmail.com"
] | roman.heinrich@gmail.com |
3bddf8ee0d0caafdd7caed64e3dec1ff672aa330 | 03561b4c626f1b668870b776f10c8fc42cf583f2 | /pytablereader/typehint.py | 3a3e13847172594a5b25d093f8eb741c2c7ebfa8 | [
"MIT"
] | permissive | Elese25/pytablereader | 316edc400f1790f122a0b18bc4c91265593023e0 | ec6eb0544f50dd411e6e99e8d334019ef22738b1 | refs/heads/master | 2022-11-30T06:18:09.375384 | 2020-08-01T13:13:33 | 2020-08-01T13:13:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from typepy.type import (
Bool,
DateTime,
Dictionary,
Infinity,
Integer,
IpAddress,
List,
Nan,
NoneType,
NullString,
RealNumber,
String,
)
| [
"tsuyoshi.hombashi@gmail.com"
] | tsuyoshi.hombashi@gmail.com |
a1927c8eb2ef3ac2230936534ddb2cf0732199d0 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyOldStyleClassesInspection/Super.py | 00961243a4fbfbb628a78fdb9848bbfad0cf0029 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 336 | py |
class AA:
def __init__(self):
<warning descr="Old-style class contains call for super method">super</warning>(AA, self)
class D:
def __init__(self):
<warning descr="Old-style class contains call for super method">super</warning>(self.__class__, self).__init__()
class B(object):
def __init__(self):
... | [
"Ekaterina.Tuzova@jetbrains.com"
] | Ekaterina.Tuzova@jetbrains.com |
c44949738c82ac49f251220a611bc7a9614571c9 | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /cc_mcc_seq/Results/snp/23_mcc_fdr_heatmap/1_fdr_heatmap.py | d2bb37200672eb1a28deb1adf73e9b6559a690f7 | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | dict1=dict()
inFile=open('sum_snp.exome_combined.sorted.pass012.new_mcc_num_len2_fisher.fdr')
ouFile=open('sum_snp.exome_combined.sorted.pass012.new_mcc_num_len2_fisher.fdr.sorted','w')
for line in inFile :
line=line.strip()
fields=line.split('\t')
dict1[fields[0]]=float(fields[1])
inFile.close()
d=dict1... | [
"sunhanice@gmail.com"
] | sunhanice@gmail.com |
0c427df776724b3c3f224db302d9f923a1bbdb1b | 9773a88a43f54d3c1900063b30f0007b8defe007 | /question3.py | 2c089e230cc2f1cd7188c2d5d3fa8bd20d4425e9 | [] | no_license | Laxmivadekar/dictionary | 53482d8aa3eec269b804ff4f822b92f2ba1f18ba | c22c924f5493fcfb599c2fe1ac9b89bcee87554e | refs/heads/main | 2023-07-11T07:22:01.579645 | 2021-08-28T10:35:50 | 2021-08-28T10:35:50 | 400,764,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | mydict= {'data1':100, 'data2':-54,'data3': 247}
sum=0
for i in mydict.values():
sum=sum+i
print(sum)
# for akey in mydict:for
# if len(akey)>3:
# total=total+mydict[akey]
# print(total)
# Ek program likhiye jo ki dictionaries ki values ka sum print kare.
# Example :-
# Input :-
# my_dict = {#... | [
"noreply@github.com"
] | Laxmivadekar.noreply@github.com |
1da80e7029f8b510fcdcd852701777fa0a8b5b53 | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /nni/common/hpo_utils/__init__.py | eed7f4616ba00be00b2fd5ffe47eb338293958be | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 218 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from .dedup import Deduplicator
from .validation import validate_search_space
from .formatting import *
from .optimize_mode import OptimizeMode
| [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
5c8f88ad08c3c459954a96096e19969d18e29dea | b2e833e422f6c3238bdc56a53980170666175176 | /python_code_version/05_arrayCreationRoutine2.py | 5016038e6f08b375bf5a85b0dc88f06b15ebc3d7 | [] | no_license | SONG-WONHO/start_NumPy | 95ff503a140fa9ba088f45e42468b33039778924 | 11421d56779a3e3018c6e58859fa4708254f4de2 | refs/heads/master | 2021-01-16T19:26:27.000963 | 2018-12-25T15:39:15 | 2018-12-25T15:39:15 | 100,168,068 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | #load numpy as np
import numpy as np
'''
np.asarray(object, dtype = None, order = None)
np.frombuffer(buffer, dtype = float, count = -1, offset = 0)
np.fromiter(iterable, dtype, count = -1)
'''
#list, tuple => ndarray
a_list = [c for c in range(5)]
print(type(a_list)) ##<class 'list'>
a_tuple = (0,1,2,3,4)
print(type... | [
"win778500@gmail.com"
] | win778500@gmail.com |
bfe90a7edf4b9384f3d1e07f1a8e881afd9eeaeb | 300bd10ca118ee3a81d80b1d31a46cd7e8a93a11 | /amazon-braket-default-simulator-python-main/test/unit_tests/braket/default_simulator/test_density_matrix_simulator.py | da8ed1f19b0a308b702d9c04ef113ca854b2290d | [
"Apache-2.0"
] | permissive | mukherr/python_repos | 43dce168087abe23fd5c88962a5422894a50e2e2 | 68fc3e071fd835d4d57c46af0d88fcb3fd6783b7 | refs/heads/main | 2023-08-27T20:27:32.599624 | 2021-11-08T23:56:53 | 2021-11-08T23:56:53 | 426,025,511 | 0 | 0 | null | 2021-11-08T23:45:44 | 2021-11-08T23:23:36 | null | UTF-8 | Python | false | false | 14,671 | py | # Copyright Amazon.com Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompany... | [
"bugbustreinvent@gmail.com"
] | bugbustreinvent@gmail.com |
d4077c66213d3bb932ac39e4da0ac294937f146a | d23735419170bc51979bd37e6e82909ded61b818 | /image_lucida_project/image_lucida_app/tests/test_text_annotation.py | 0dd21943fb6bafd818645e6fa1dc183fdb130656 | [] | no_license | ZoeLeBlanc/ImageLucida | 7f691d956faa2c5490c7a6b7d1ab69439636ea58 | edf41df372f31cac0682b9bfec85b2846b78a936 | refs/heads/main | 2023-02-20T12:41:20.372916 | 2022-05-30T02:12:26 | 2022-05-30T02:12:26 | 82,299,769 | 1 | 0 | null | 2023-02-15T18:32:12 | 2017-02-17T13:26:13 | Python | UTF-8 | Python | false | false | 3,915 | py | from django.test import TestCase
from django.urls import reverse
from image_lucida_app.models import *
from image_lucida_app.media import *
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
class TestTextAnnotation(TestCase):
"""
This class tests everything related to tra... | [
"zoe.leblanc@vanderbilt.edu"
] | zoe.leblanc@vanderbilt.edu |
6f9945861920dd806d063c8c41842c5fba3623fb | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_member_groups_request.py | 6f78df0a941a8a5adf9d758e6b2df89eaf4af0d7 | [
"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 | 9,563 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListMemberGroupsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attr... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
bee0f7643ba20b366ff84d2db9ba2e97bdcbbe6a | 87a89ec187089024a7f0ccbdf8612aea9f50413b | /python-api-examples/examples/with_env.py | 1d54b575b13962e2a9ef4ba4a522baf0a41a0838 | [
"Apache-2.0"
] | permissive | adityalahariya/projects | b0668fd50245bf4868e6f17a06082920fe472550 | f97d77903aa1acc2e695b0122bfc46cc54001135 | refs/heads/master | 2023-08-22T04:56:07.187556 | 2021-10-17T04:38:09 | 2021-10-17T04:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | """
@with_env and @load_env facilitate loading env.yaml files
"""
from pathlib import Path
from ploomber.tasks import PythonCallable
from ploomber.products import File
from ploomber import DAG, with_env, load_env
@with_env({'path': {'data': '/tmp/'},
'db_uri': 'sqlite:///my_db.db'})
# the first parameter ... | [
"github@blancas.io"
] | github@blancas.io |
41ac08a93bd382d908cbdbfa2d5a1562641d0c0e | 8165af1699eb69db427304eb73ff35b909ab8fdb | /week03/day02/file_not_exists.py | 0a4620bbdd62830aed6b00f95307ea76f109c291 | [] | no_license | danielkorosi/DanielKorosi | c7f19ab4f6685d614799307e14fad687fd45f586 | 5213b680326d6db6cf06eb688b0dddc038ff93ed | refs/heads/master | 2020-06-23T14:47:27.207029 | 2017-07-10T07:56:03 | 2017-07-10T07:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # write a function that takes a filename and returns the number of lines the
# file contains. It should return zero if the file does not exist.
print('Add the name of your file to count the number of lines in it:')
file_name = input()
def line_number(file_name):
try:
opened_file = open(file_name, 'r')
... | [
"daniel.korosi42@gmail.com"
] | daniel.korosi42@gmail.com |
54b4bb3da449145fdcce2439ba4564f060f6be1e | 34fef7962717d8b6f14f6b11decef15e2cfdf90a | /reduce_HB2A_oncat2.py | 2425cfc3dd822f769ff00f67fe33bfb8f151e253 | [] | no_license | rosswhitfield/powder | a6029a23a099b621ae06909fe6711c7aafd85f93 | 6fbcbc8050c25f4677a11c3bab308f04f9a6784f | refs/heads/master | 2021-06-23T02:29:20.485722 | 2020-11-13T21:19:23 | 2020-11-13T21:19:23 | 145,859,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,700 | py | #!/usr/bin/env python
from __future__ import (absolute_import, division, print_function, unicode_literals)
import os
import sys
sys.path.insert(0,"/opt/mantid50/bin")
sys.path.insert(1,"/opt/mantid50/lib")
import pyoncat
import client
import numpy as np
try:
from postprocessing.publish_plot import publish_plot
ex... | [
"whitfieldre@ornl.gov"
] | whitfieldre@ornl.gov |
a7e7c6e2ca67386eecbacb0c8462a4ecd228631e | cd0f3fa5c3b202599812ac8b49e374fe2b2f2e8b | /ExerciciosAprendizagem/Cap09/c09ex23.py | 255d3941815e18e2d03f362e053d7a2ac114c4f0 | [] | no_license | J-AugustoManzano/livro_Python | 46c14dc4bc5fb361d850fcd361477a952de172c2 | e42b79ef78c6b1ab936fe9a13d32ddc94deeb2a8 | refs/heads/main | 2023-06-25T03:10:30.297226 | 2023-06-08T23:34:54 | 2023-06-08T23:34:54 | 354,116,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | dividendo = float(input("Informe um valor do dividendo...: "))
divisor = float(input("Informe um valor do divisor.....: "))
quociente = dividendo / divisor
print("\nResultado = ", quociente)
enter = input("\nPressione <Enter> para encerrar... ")
| [
"noreply@github.com"
] | J-AugustoManzano.noreply@github.com |
668dde7256c0dcd42949a6c9d6b6e3a3df4105b4 | ad0fcacbcee9f28eb04df72262749eedb5fb30ea | /ValidationCWProj/wsgi.py | 70e4b3f00623b160c30b5069599315840bf40706 | [
"Apache-2.0"
] | permissive | cs-fullstack-2019-spring/django-validation-cw-Joshtg1104 | a60d092b033ac8c62b45aa3e63ac2ea52adf5e6f | 5b910cbda87793f233ad41dfbffe19e40691db64 | refs/heads/master | 2020-04-25T23:42:29.909669 | 2019-03-01T19:56:43 | 2019-03-01T19:56:43 | 173,154,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for ValidationCWProj 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('DJA... | [
"joshtg1104@gmail.com"
] | joshtg1104@gmail.com |
0309b9f7c6c42952bab8e1b9eb2326fb4e1d0fbc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02936/s129062300.py | 85d32153686dc32dcfbd43257d366820620eaa2d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from collections import deque
n,q=map(int,input().split())
count=[0]*(n+1)
ab=[[] for _ in range(n+1)]
for _ in range(n-1):
a,b=map(int,input().split())
ab[a].append(b)
ab[b].append(a)
for _ in range(q):
p,x=map(int,input().split())
count[p]+=x
stack=[]
visited=[0]*(n+1)
stack.append(1)
visited[1]=1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fc956f8d40ff409e64524a83863821cd2c2e1abe | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/280381_Cleinit_methods_that_contaonly_attribute/recipe-280381.py | 59b749397a635a1a9828400d9e9aa56fb9587407 | [
"MIT",
"Python-2.0"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 455 | py | def attributesFromDict(d, obj=None, objName="self"):
if obj is None:
obj = d.pop(objName)
for n, v in d.iteritems():
setattr(obj, n, v)
class Before:
def __init__(self, foo, bar, baz, boom=1, bang=2):
self.foo = foo
self.bar = bar
self.baz = baz
self.boom = b... | [
"betty@qburst.com"
] | betty@qburst.com |
0d48720690073ce18bfbb530d48c476c9178559d | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py | 01364c47bae8a1ca6d04484bb281a47e22b5b290 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 8,128 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | holisticon.noreply@github.com |
4cf8d2581fbaa50cdb39fe93c3c0431212096fa8 | 48bacc668f34f2e46b9be94eda6b86d089a844c6 | /boardCutting.py | 5304a3b4a4d786bdab0cf8acbd803e54188dd9aa | [] | no_license | pohily/www.hackerrank.com- | b40e7fd6161c7c9a5eb32dc5eb2f0420f08f8898 | df2beb33e16663032e34c7f4fe827b070ef9ac0c | refs/heads/master | 2020-04-05T18:02:24.631455 | 2019-07-06T13:18:24 | 2019-07-06T13:18:24 | 157,086,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | def boardCutting(cost_y, cost_x):
y = 1
x = 1
cost_y = sorted(cost_y, reverse=True)
cost_x = sorted(cost_x, reverse=True)
cost = 0
while cost_y and cost_x:
if cost_y[0] > cost_x[0]:
cost += cost_y[0] * y
x += 1
del(cost_y[0])
else:
... | [
"mpohily@gmail.com"
] | mpohily@gmail.com |
6cda9d7a5d83d32c87309b33034e7672863ab2bd | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/193_b.py | 1ab6e8eed43acca3a7957643ed1853cadb1680fd | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
q = int(input())
INF = 10**18
res = INF
for i in range(q):
a,p,x = map(int,input().split())
cur = x - a
if cur > 0:
res = min(res, ... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
334cebde705bc37755e6481234527bb8935556ed | e0ae697de14078f97287ad2b917af050805085bc | /scripts/run_gp_models.py | 0504fb7dfba47ba91de83bfd15c1672cc8bdb183 | [
"Apache-2.0"
] | permissive | nlesc-nano/swan | 08204936e597017cff517c9a5b8f41262faba9c1 | 4edc9dc363ce901b1fcc19444bec42fc5930c4b9 | refs/heads/main | 2023-05-23T21:50:45.928108 | 2023-05-09T13:35:58 | 2023-05-09T13:35:58 | 191,957,101 | 15 | 1 | Apache-2.0 | 2023-05-09T13:36:29 | 2019-06-14T14:29:57 | Python | UTF-8 | Python | false | false | 2,082 | py | #!/usr/bin/env python
import logging
from pathlib import Path
import torch
from swan.dataset import FingerprintsData, split_dataset
from swan.modeller import GPModeller
from swan.modeller.models import GaussianProcess
from swan.utils.log_config import configure_logger
from swan.utils.plot import create_confidence_pl... | [
"tifonzafel@gmail.com"
] | tifonzafel@gmail.com |
8c7d99247fe35b6d1397197350da0d86b22d8853 | 888cfb7f0e16bb30408f89afda47a4418026ac6b | /signal_flask_demo/demo-2.py | c23185ea15a133ea460ad85359cc7bbdbcf7dc4f | [] | no_license | BennyJane/flask-demo | a4e5e224d999c7a898fb652047c511fe37718567 | 23965c0f31e6723dca8263c0e254ffea0f585471 | refs/heads/master | 2023-02-10T17:29:53.663476 | 2021-01-10T13:58:56 | 2021-01-10T13:58:56 | 297,965,363 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | # -*- coding: utf-8 -*-
# @Time : 2020/10/22
# @Author : Benny Jane
# @Email : 暂无
# @File : first.py
# @Project : Flask-Demo
from flask import Flask, signals, request
from flask.signals import Namespace
app = Flask(__name__)
'''
自定义信号:
- 将信号定义在Flask默认的命名空间内
from flask.signals import _signals
custom_signal = _signals... | [
"3355817143@qq.com"
] | 3355817143@qq.com |
749f80ea4fb91cc719263ab6a3323150334fa082 | 0e7ce59e7fea5e8375681499ed38a962e04c3808 | /segmentation/JSRT/write_csv_files.py | e23de45bc70bf41d68bc542b149f61254e0a6b9e | [] | no_license | lizan971129/PyMIC_examples | a94ef356d85d12130de794cc30c2337ac7d7819f | 3836618f405aa43fed3806a439aab88f0442be7d | refs/heads/main | 2023-05-02T22:11:58.253636 | 2021-05-21T09:35:09 | 2021-05-21T09:35:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | """Script for writing cvs files
"""
import os
import csv
import pandas as pd
import random
from random import shuffle
def create_csv_file(data_root, output_file, fields):
"""
create a csv file to store the paths of files for each patient
"""
filenames = []
patient_names = os.listdir(data_root + '/... | [
"wguotai@gmail.com"
] | wguotai@gmail.com |
97ae1736afdb9a159d3610b4d1a0df9322102680 | fe03eab6477db3f7f3667eefe369dd89d457a58f | /Run2Demonstrator/npe_calibration/measureSPE_v2.py | ee3ea260ac804b7656282f219dab2c7c6adfe95d | [] | no_license | milliQan-sw/milliqanOffline | c64a56173797cd00b9243e4ca7196515081834e6 | 4df6cb4a16ea88feea82b99f9f8c356dbce863cc | refs/heads/master | 2023-08-23T13:39:17.513848 | 2023-08-17T20:16:20 | 2023-08-17T20:16:20 | 123,949,343 | 3 | 7 | null | 2023-09-13T06:59:02 | 2018-03-05T16:47:13 | Python | UTF-8 | Python | false | false | 23,890 | py | #!/usr/bin/env python
import os, sys, re
import ROOT
import os
from array import array
import cfg
import util as u
import subprocess
#from ROOT import kBlack,kRed,kGreen,kOrange,kBlue,kPink,kYellow,kGray,kMagenta,kSpring,kAzure,kTeal
ROOT.gROOT.SetBatch(ROOT.kTRUE)
if len(sys.argv) < 3:
sys.exit('usage: {0} <TAG>... | [
"bmarsh@physics.ucsb.edu"
] | bmarsh@physics.ucsb.edu |
f1ba0a2475c7d2f9b76cbd07c0bef6cb8cfb5439 | 44ef33f7025bbf6bd7c6131e99a601379c350987 | /Mercari_Tfidf.py | 0498db6a073fed4d384aec512ec36dff5a5540a9 | [] | no_license | Sandy4321/Kaggle-mercari-price-suggestion | 64a20640d93591bbc5d452fe60d52a923118e99a | 9ce56ba7514b4ee185a21e48e50b9bb40a070c22 | refs/heads/master | 2022-01-28T20:48:06.309341 | 2018-12-02T05:17:38 | 2018-12-02T05:17:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,824 | py | import numpy as np
import pandas as pd
import nltk
import re
import gc
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer, HashingVectorizer
from sklearn.preprocessing import LabelBinarizer
from sklearn.model_selection import KFold, GridSearchCV, cross_val_score, train_test_split
from sklearn.... | [
"noreply@github.com"
] | Sandy4321.noreply@github.com |
28b11905498fd7bba4d5bb086cbbadf5f53851e4 | 30165ce601e55dc2c1b8868214b38e7c2d2831aa | /app/models.py | be79c31661eb1629b1397b7c8e62929758a3a355 | [] | no_license | the-fool/fasterGIS | 53c1f6913ce1d1ad058d3343eac5cdaa949d2e83 | 0fafbcdc5ce7b13b2c64dcca1c5ac8fc18befd16 | refs/heads/master | 2020-12-31T00:17:44.354703 | 2015-12-09T16:52:17 | 2015-12-09T16:52:17 | 46,838,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | import os
import errno
import hashlib
from werkzeug.security import generate_password_hash, check_password_hash
from flask import current_app, request
from flask.ext.login import UserMixin, AnonymousUserMixin
from . import login_manager
from database import Base
from sqlalchemy import LargeBinary, Numeric, DateTime, Co... | [
"sketchbang@gmail.com"
] | sketchbang@gmail.com |
971ef48da4b0a6ddeee63da9f41f40f24b00ff44 | d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007 | /CNN_Datasets/O_A/datasets/MFPTFFT.py | 3088d42badf362d7b71c5a63dc3e1a3f2a1f8fa5 | [
"MIT"
] | permissive | wuyou33/DL-based-Intelligent-Diagnosis-Benchmark | eba2ce6f948b5abe68069e749f64501a32e1d7ca | e534f925cf454d07352f7ef82d75a8d6dac5355c | refs/heads/master | 2021-01-02T15:06:29.041349 | 2019-12-28T21:47:21 | 2019-12-28T21:47:21 | 239,673,952 | 1 | 0 | MIT | 2020-02-11T04:15:21 | 2020-02-11T04:15:20 | null | UTF-8 | Python | false | false | 5,063 | py | import os
import numpy as np
import pandas as pd
from scipy.io import loadmat
from sklearn.model_selection import train_test_split
from datasets.SequenceDatasets import dataset
from datasets.sequence_aug import *
from tqdm import tqdm
#Digital data was collected at 50,000 samples per second
signal_size=1024... | [
"646032073@qq.com"
] | 646032073@qq.com |
137352c55a2334fe342d361c8c5411f130c46147 | bf73ff4441577074dee2225ac937fbbbf4e85fef | /pplbench/lib/utils.py | 6d877287b25622c5aed7a1da6d5cab5e297ae704 | [
"MIT"
] | permissive | rambam613/pplbench | 632878a359945fe64cf24489aa7669040727c672 | d69c652fc882ba50f56eb0cfaa3097d3ede295f9 | refs/heads/master | 2023-07-07T02:16:19.384357 | 2021-08-13T08:01:55 | 2021-08-13T08:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,939 | py | # Copyright(C) Facebook, Inc. and its affiliates. All Rights Reserved.
import datetime
import io
import json
import logging
import os
import pydoc
import sys
import time
from argparse import Namespace
from types import SimpleNamespace
from typing import Any
import jsonargparse
import xarray as xr
LOGGER = logging.ge... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
5dd1c7b44e804b3a7ab6935bdcf6404e46af2b51 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03696/s735782743.py | c614a191feb8d766344f6035b01b3b37b6a94d21 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | def main():
import sys
def input(): return sys.stdin.readline().rstrip()
n = int(input())
s = input()
cnt = 0
m = 0
for i in range(n):
if s[i] == '(':
cnt += 1
else:
cnt -= 1
m = min(m, cnt)
ans = '('*(-m)+s+')'*(cnt-m)
print(ans)
i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
71a1e31680c5b59087f59c92d1f1a135ada34632 | 6e92586ae20e4c59e9d3d264a3aaf06c6fe3e572 | /user/migrations/0001_initial.py | d97218951b99f716283d86b925b384228181e92a | [] | no_license | aktanaktan/hackathon | 93777c51c5442a3540e4318b8bfa9eb8b2402ac5 | ed7e97b6eab8ae2fd61139778ef01965663612fa | refs/heads/master | 2023-05-22T16:23:59.661007 | 2021-06-18T15:51:34 | 2021-06-18T15:51:34 | 377,857,087 | 0 | 2 | null | 2021-06-18T10:21:46 | 2021-06-17T14:22:15 | Python | UTF-8 | Python | false | false | 2,616 | py | # Generated by Django 3.2.4 on 2021-06-17 06:05
from django.db import migrations, models
import django.utils.timezone
import user.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrat... | [
"aktan2222@gmail.com"
] | aktan2222@gmail.com |
0f753bd453ebc76ac0958f6c09d376303ac0119b | f0572a73ddcd95766e35dac5d3472afb9dfcc494 | /fitPeriodDistribution.py | cc0dc642e60fd55939e4144bc8e649fc06a24f5a | [] | no_license | rashley2712/utils | ecd1a4be20ad1489c160c49f81b853c2ed39085b | 55ad0b610ffd6433a05aedf1b9c28d0269f9abb2 | refs/heads/master | 2021-06-14T15:21:47.198094 | 2021-05-24T08:38:02 | 2021-05-24T08:38:02 | 24,514,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,458 | py | #!/usr/bin/env python
import sys, os
import numpy, math, scipy.optimize
import argparse
import matplotlib.pyplot
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Compare the cumulative histograms of two period population samples.')
parser.add_argument('file', type=str, help= 'File containing ... | [
"rashley@gmail.com"
] | rashley@gmail.com |
a2938d4f16989c619ec7240620c6942f7f3e0ff5 | 1604839df0c4200546c7c40471a74da133c0387c | /routes/migrations/0001_initial.py | c5f35ab53e02e172f4638d8bd0bfa5ae3dbf18f9 | [] | no_license | tarp20/TarRoute | 7688271fb2153355252d56e5861c58a73471bf45 | 57f7d407b8c445ed624607d701f55ed18c33ec7e | refs/heads/main | 2023-02-28T21:06:00.817333 | 2021-01-29T18:43:31 | 2021-01-29T18:43:31 | 331,002,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | # Generated by Django 3.1.5 on 2021-01-21 15:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('trains', '0002_auto_20210120_1711'),
('cities', '0002_auto_20210119_1541'),
]
operation... | [
"taras.piont@gmail.com"
] | taras.piont@gmail.com |
9020f3e22c98f4f372471a6d9e62992ac3290492 | 26b1b0d767c7a02a17d0cf3d14ee6f5d8af62ec9 | /talentmap_api/organization/urls/location.py | f2e1a6e91bdcf1b8aecd425c31bc595aae79e63a | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | 18F/State-TalentMAP-API | 62673db5bfa26266ac3a70f8461ead2cc5c080cd | cf71acd2ea0957aa2d599da8e1185d8519d8b013 | refs/heads/master | 2020-09-09T19:34:28.617579 | 2018-02-16T17:30:01 | 2018-02-16T17:30:01 | 94,444,868 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from rest_framework import routers
from talentmap_api.organization import views
router = routers.SimpleRouter()
router.register(r'', views.LocationView, base_name="organization.Location")
router.register(r'^(?P<instance_id>[0-9]+)/history', views.HistoricalLocationView, base_name="organization.Location-history")
url... | [
"armanfrasier@gmail.com"
] | armanfrasier@gmail.com |
75bf71ceff79e25c945ce4c67ab6641af80ec3de | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /dist-packages/taskflow/tests/unit/test_conductors.py | 6177f262fcbb648a27c995085e1fcaf5c043a0ab | [] | no_license | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 16,741 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2014 Yahoo! Inc. 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... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
5133e7f88673030fec0ddd4c6ebf5a46a7ec41b6 | e6488363d0a4dbcf9e7f8dd05b063bfef6cce182 | /Pertemuan 15/1.py | bd6da05366ba3a7e28558b29a692ff8ec1dd7163 | [] | no_license | murakumo512/Alpro-Python-2019-2020 | 7d0ca313887db9803a2728d1054a84b7b0b5de4a | 6dce6f03f3e148bcb7ba05cdc5355246cdf3f5f4 | refs/heads/master | 2022-10-23T20:13:55.214062 | 2020-06-20T12:39:01 | 2020-06-20T12:39:01 | 272,235,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import re
txt = "Mardonius Riel"
x = re.findall("[aiueoAIUEO]", txt)
if(x):
x = re.sub("[aiueoAIUEO]", "1", txt)
else:
x = re.split("\s",txt)
print(x) | [
"noreply@github.com"
] | murakumo512.noreply@github.com |
39c990ee17be16fc7b876723121bc6467e615f22 | d659d8f29ef2f01ac1fc8c292e8a836ba36bfd16 | /tests/test_modeling_blenderbot_small.py | f5dc8c42076a2fa2e0da5e06319f9228669d9c7d | [
"Apache-2.0"
] | permissive | monuminu/transformers | dc0fa4730ca6e37c2053f8b327c37bb322dd99cc | 82c6e8fc0efaece02eb6e809b7b03df909ff6c11 | refs/heads/master | 2023-07-15T13:13:23.525788 | 2021-08-03T09:41:42 | 2021-08-03T09:41:42 | 369,849,849 | 1 | 0 | Apache-2.0 | 2021-05-29T05:26:17 | 2021-05-22T16:00:10 | Python | UTF-8 | Python | false | false | 21,616 | py | # coding=utf-8
# Copyright 2021, The HuggingFace Inc. team. 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 ... | [
"noreply@github.com"
] | monuminu.noreply@github.com |
556ae62b11a598d65ca2a74adc1f2ec8a334aa6d | 1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41 | /easy/python3/c0044_189_rotate-array/00_leetcode_0044.py | ab8eac8f6797a489fa709d8c3fa664edc182c619 | [] | no_license | drunkwater/leetcode | 38b8e477eade68250d0bc8b2317542aa62431e03 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | refs/heads/master | 2020-04-06T07:09:43.798498 | 2018-06-20T02:06:40 | 2018-06-20T02:06:40 | 127,843,545 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#189. Rotate Array
#Rotate an array of n elements to the right by k steps.
#For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,... | [
"Church.Zhong@audiocodes.com"
] | Church.Zhong@audiocodes.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.