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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9117f9f2cce95c3f9c960a40127f7cde6384a932 | d21864a26233d32913c44fd87d6f6e67ca9aabd8 | /prosodic/lib/Phoneme.py | 876171217cb508068e7a472fe4fc487bf116ba6c | [
"MIT"
] | permissive | quadrismegistus/litlab-poetry | 7721a8849667f2130bb6fa6b9f18a7f6beb9912e | 28fff4c73344ed95d19d7e9a14e5a20697599605 | refs/heads/master | 2021-01-23T20:14:05.537155 | 2018-11-19T08:56:55 | 2018-11-19T08:56:55 | 27,054,260 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,454 | py | from ipa import ipa,ipakey,ipa2cmu,formantd
from entity import entity
class Phoneme(entity):
def __init__(self,phons,ipalookup=True):
self.feats = {}
self.children = [] # should remain empty unless dipthong
self.featpaths={}
self.phon=None
if type(phons)==type([]):
for phon in phons:
if type(phon)... | [
"ryan.heuser@gmail.com"
] | ryan.heuser@gmail.com |
16fa0a4b39d17c4ece50384f657fc65fb6ee0fef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02271/s666225963.py | a1e305d0cdb1bc4f6641e39bb56d1f7301cd5a82 | [] | 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 | 450 | py | # ALDS_5_A - 総当たり
import sys
n = int(input())
A = list(map(int, sys.stdin.readline().strip().split()))
q = int(input())
m = list(map(int, sys.stdin.readline().strip().split()))
sum_set = set()
for i in range(2 ** n):
bit = [(i >> j) & 1 for j in range(n)]
combined = [x * y for (x, y) in zip(A, bit)]
sum... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9db73616056bed06a9c8484c5aea2920e6c7b81e | 421b0ae45f495110daec64ed98c31af525585c2c | /PythonProgramsTraining/graphics/frame1.py | c0c8e6a93f60c197702ad936f518643ad8a67d1b | [] | no_license | Pradeepsuthar/pythonCode | a2c87fb64c79edd11be54c2015f9413ddce246c4 | 14e2b397f69b3fbebde5b3af98898c4ff750c28c | refs/heads/master | 2021-02-18T05:07:40.402466 | 2020-03-05T13:14:15 | 2020-03-05T13:14:15 | 245,163,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import tkinter as tk
from tkinter import messagebox
def area():
'to calculate area'
len = float(tfLen.get())
wid = float(tfWidth.get())
result = len*wid
tfArea.insert(0,result)
# Showing massage box
messagebox.showinfo("Info MAss ", "Area is : "+str(result)+" CM")
# creating a ... | [
"sutharpradeep081@gmail.com"
] | sutharpradeep081@gmail.com |
9cd66536cdc51a43bf901eccb7e2154f2e6368ec | 768058e7f347231e06a28879922690c0b6870ed4 | /venv/lib/python3.7/site-packages/numba/cuda/simulator/compiler.py | 5a88a649e47d11efe9887678a7397e77376673b8 | [] | no_license | jciech/HeisenbergSpinChains | 58b4238281d8c158b11c6c22dd0da82025fd7284 | e43942bbd09f6675e7e2ff277f8930dc0518d08e | refs/heads/master | 2022-12-18T08:04:08.052966 | 2020-09-29T12:55:00 | 2020-09-29T12:55:00 | 258,476,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | """
The compiler is not implemented in the simulator. This module provides a stub
to allow tests to import successfully.
"""
compile_kernel = None
| [
"jan@multiply.ai"
] | jan@multiply.ai |
a02d45d50426a72b18991c0c25da0082ba9e835f | 1886065d10342822b10063cd908a690fccf03d8b | /appengine/findit/crash/loglinear/changelist_classifier.py | 96277a04aefab650a935aa33a7cf08c3b48f7e7a | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/chromium-infra_A6Y5 | 26af0dee12f89595ebc6a040210c9f62d8ded763 | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | refs/heads/master | 2023-03-16T15:33:31.015840 | 2017-01-31T19:55:59 | 2017-01-31T20:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,932 | py | # Copyright 2016 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.
from collections import defaultdict
import logging
from common.chrome_dependency_fetcher import ChromeDependencyFetcher
from crash import changelist_classif... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
5e02976a619cb1e6ada32cf79cbd4ed879067ae8 | 4b69b5dd4b1b3cf81b996065831226a243abb332 | /articles/admin.py | 45fafe2207a9eb4a089c73b9557ee149401c8418 | [] | no_license | cui0519/myBlog | d8ebd601ac5bf5a3fe0dc16e2c703cdbaa055ab9 | c0852b6e42bfa93820d330e8f9e547be229344e8 | refs/heads/master | 2023-02-09T06:33:13.641351 | 2021-01-05T00:18:21 | 2021-01-05T00:18:21 | 326,308,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from django.contrib import admin
from .models import Articles
# Register your models here.
class ArticlesAdmin(admin.ModelAdmin):
list_display = ('title','author','img','abstract','visited','created_at')
<<<<<<< HEAD
search_fields = ('title','author','abstract','content')
=======
search_fields = ('ti... | [
"you@example.com"
] | you@example.com |
c5b193fb983b5e4d663f93a6485499e152a180c1 | e5cf5fd657b28d1c01d8fd954a911d72526e3112 | /tide_teach/tide_time_windows.py | b54f5fcebaccedcc95ffb40b903d76d6c69a1cd4 | [] | no_license | parkermac/ptools | 6b100f13a44ff595de03705a6ebf14a2fdf80291 | a039261cd215fe13557baee322a5cae3e976c9fd | refs/heads/master | 2023-01-09T11:04:16.998228 | 2023-01-02T19:09:18 | 2023-01-02T19:09:18 | 48,205,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | """
Code to plot observed tide time series.
"""
import os
import sys
import pytz
import pandas as pd
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
import numpy as np
from importlib import reload
import ephem_functions as efun
reload(efun)
import tractive_functions as tfun
reload(tfun)
alp... | [
"p.maccready@gmail.com"
] | p.maccready@gmail.com |
6b1d1fdaa602c7768fb7a668612821ad314b4395 | 52d797a1a9f853f691d2d6fb233434cf9cc9e12b | /Implementation Challenges/Append and Delete.py | 1e2622a5816301cb9b83c0a56d915bdfe4639df0 | [] | no_license | harshildarji/Algorithms-HackerRank | f1c51fedf2be9e6fbac646d54abccb7e66800e22 | 96dab5a76b844e66e68a493331eade91541fd873 | refs/heads/master | 2022-05-21T06:57:59.362926 | 2020-04-19T14:05:19 | 2020-04-19T14:05:19 | 114,212,208 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Append and Delete
# https://www.hackerrank.com/challenges/append-and-delete/problem
s, t = input().strip(), input().strip()
k = int(input().strip())
for i in reversed(range(1, k + 1)):
if s == t[:len(s)] and len(t) - len(s) == i or len(s) == 0:
break
s = s[:-1]
print("Yes" if len(t) - len(s) <= i els... | [
"darjiharshil2994@gmail.com"
] | darjiharshil2994@gmail.com |
c305892b8de9942ba1433b2aa00240da71b7b0bc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayCloudCloudbaseHttpaccessBindQueryResponse.py | ebc27653df46ebfce5e7c7e7b22f0e76998f3f54 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,902 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.DomainBind import DomainBind
class AlipayCloudCloudbaseHttpaccessBindQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayCloudCloudbaseHttpacc... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
b4f391918f30a778d049bd168cb1ca4154c0b42a | 3a4fbde06794da1ec4c778055dcc5586eec4b7d2 | /@lib/12-13-2011-01/vyperlogix/decorators/addto.py | 979a905e9a18fdcddf2620939aec919f9baa031a | [] | no_license | raychorn/svn_python-django-projects | 27b3f367303d6254af55c645ea003276a5807798 | df0d90c72d482b8a1e1b87e484d7ad991248ecc8 | refs/heads/main | 2022-12-30T20:36:25.884400 | 2020-10-15T21:52:32 | 2020-10-15T21:52:32 | 304,455,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | __copyright__ = """\
(c). Copyright 2008-2014, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational use only.,
http://www.VyperLogix.com for details
THE AUTHOR VYPER LOGIX CORP DISCLAIMS ... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
7ca223afe5153d45121ca9011ccb886e87b49eb5 | 99fddc8762379bcb707ad53081cd342efa7a5d89 | /test/pinocchio_frame_test.py | fa17c45921833826190201d02cca144b699b6959 | [
"MIT"
] | permissive | zhilinxiong/PyPnC | ef19a4bcc366666d2550466b07cd8ec8f098c0c4 | abf9739c953d19ca57fd4bd37be43415f3d5e4a7 | refs/heads/master | 2023-07-04T19:09:26.115526 | 2021-08-03T04:29:10 | 2021-08-03T04:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import os
import sys
cwd = os.getcwd()
sys.path.append(cwd)
import pinocchio as pin
import numpy as np
urdf_file = cwd + "/robot_model/manipulator/three_link_manipulator.urdf"
model = pin.buildModelFromUrdf(urdf_file)
data = model.createData()
print(model)
q = np.array([np.pi / 2., 0., 0.])
# q = np.zeros(3)
qdot = ... | [
"junhyeokahn91@gmail.com"
] | junhyeokahn91@gmail.com |
2e808d917489faf59e65fb3ab6a7e999316ec019 | 14a853584c0c1c703ffd8176889395e51c25f428 | /sem1/fop/lab5/static/strings.py | 2f47c15c3b3c7d3bd361c700be9a29ee4f30b077 | [] | no_license | harababurel/homework | d0128f76adddbb29ac3d805c235cdedc9af0de71 | 16919f3b144de2d170cd6683d54b54bb95c82df9 | refs/heads/master | 2020-05-21T12:25:29.248857 | 2018-06-03T12:04:45 | 2018-06-03T12:04:45 | 43,573,199 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | """
Most long messages displayed by the UI will be found here.
"""
from util.Color import bold
STRINGS = {
'helpPrompt':
'Commands:\n' +
'\t%s - displays this prompt.\n' % bold('help') +
'\t%s - adds a new student or assignment.\n' % bold('add') +
'\t%s -... | [
"srg.pscs@gmail.com"
] | srg.pscs@gmail.com |
cdbfa1646185540c98eb700f25ced9365adf3ea5 | 2359121ebcebba9db2cee20b4e8f8261c5b5116b | /configs_pytorch/f92-all_pt.py | 24f40fe7c10ebd9bd5510af10002262937b2188d | [] | no_license | EliasVansteenkiste/plnt | 79840bbc9f1518c6831705d5a363dcb3e2d2e5c2 | e15ea384fd0f798aabef04d036103fe7af3654e0 | refs/heads/master | 2021-01-20T00:34:37.275041 | 2017-07-20T18:03:08 | 2017-07-20T18:03:08 | 89,153,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,436 | py |
#copy of j25
import numpy as np
from collections import namedtuple
from functools import partial
from PIL import Image
import data_transforms
import data_iterators
import pathfinder
import utils
import app
import torch
import torchvision
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional... | [
"frederic.godin@ugent.be"
] | frederic.godin@ugent.be |
007da86134bd9cf81656b9de3a4b00e9262caadf | 0bce7412d58675d6cc410fa7a81c294ede72154e | /Python3/0983. Minimum Cost For Tickets.py | 67eeee126a10f3fbd09cd9f37ac9a746033d4c3f | [] | no_license | yang4978/LeetCode | 9ddf010b0f1dda32cddc7e94c3f987509dea3214 | 6387d05b619d403414bad273fc3a7a2c58668db7 | refs/heads/master | 2022-01-15T04:21:54.739812 | 2021-12-28T12:28:28 | 2021-12-28T12:28:28 | 182,653,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | class Solution:
def mincostTickets(self, days: List[int], costs: List[int]) -> int:
# end = days[-1] + 1
# dp = [0]*end
# for d in range(1,end):
# temp = dp[d-1] + costs[0]
# temp = min(temp,min(dp[max(0,d-7):d])+costs[1])
# temp = min(temp,min(dp[max(0,d-... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
7112580637970329d57785ff0bc48507d4d081ea | 08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2 | /kubernetes/client/apis/storage_v1_api.py | 89b1839daafcce6aca004b352e8dd5927d723d95 | [
"Apache-2.0"
] | permissive | ex3cv/client-python | 5c6ee93dff2424828d064b5a2cdbed3f80b74868 | 2c0bed9c4f653472289324914a8f0ad4cbb3a1cb | refs/heads/master | 2021-07-12T13:37:26.049372 | 2017-10-16T20:19:01 | 2017-10-16T20:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,194 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
im... | [
"mehdy@google.com"
] | mehdy@google.com |
82271a49c22deb170f63fd3232c33d3a7f82602e | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyDunderSlotsInspection/inheritedClassAttrAssignmentAndOwnWithAttrAndInheritedSlots.py | 307acdbdb1c8afd488293f4deb2a1b2e092d9960 | [
"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 | 243 | py | class B(object):
attr = 'baz'
__slots__ = ['f', 'b']
class C(B):
__slots__ = ['attr', 'bar']
C.attr = 'spam'
print(C.attr)
c = C()
<warning descr="'C' object attribute 'attr' is read-only">c.attr</warning> = 'spam'
print(c.attr) | [
"Semyon.Proshev@jetbrains.com"
] | Semyon.Proshev@jetbrains.com |
93f3d82a3dbde659163043e13cd766201e977797 | 6b05bddf2e294c8e1b39846aecadfa06b4ff805d | /test/test_v1_guest_agent_ping.py | b5518c61004a78ef0ce9d3cb39339b04acf71066 | [
"Apache-2.0"
] | permissive | kubevirt/client-python | 5ca82fe55d48c07f62796d2bed3605a7c189922c | 235fe17f58d41165010be7e4122cb67bdc866fe7 | refs/heads/master | 2023-09-03T12:25:27.272479 | 2023-08-17T00:33:31 | 2023-08-17T00:33:31 | 105,017,761 | 29 | 25 | Apache-2.0 | 2022-10-20T13:52:10 | 2017-09-27T12:51:32 | Python | UTF-8 | Python | false | false | 911 | py | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
i... | [
"kubevirt-bot"
] | kubevirt-bot |
2ff528d76ec3c032363cc59f587b0f6da4f410dc | 6e373b40393fb56be4437c37b9bfd218841333a8 | /Level_3/Lecture_21/enroll/models.py | 82f2f10c875633e48efc381b7887773f0c960169 | [] | no_license | mahto4you/Django-Framework | 6e56ac21fc76b6d0352f004a5969f9d4331defe4 | ee38453d9eceea93e2c5f3cb6895eb0dce24dc2b | refs/heads/master | 2023-01-22T01:39:21.734613 | 2020-12-04T03:01:17 | 2020-12-04T03:01:17 | 318,383,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from django.db import models
# Create your models here.
class User(models.Model):
name = models.CharField(max_length=70)
email = models.EmailField(max_length=100)
password =models.CharField(max_length=100) | [
"mahto4you@gmail.com"
] | mahto4you@gmail.com |
a84829ae8a55aa1d175e4dcacd447f99e538bea7 | 49201afc8c3515d9f5cb569f45cd34ba291e84ca | /autobahntestsuite/autobahntestsuite/caseset.py | 2611fd0aadbb7fe5e8808a6db96dedfd3862fc7f | [
"Apache-2.0"
] | permissive | crossbario/autobahn-testsuite | 2f3fe9a46a806550dddb23ed7bc98a94c47d5bd8 | 09cfbf74b0c8e335c6fc7df88e5c88349ca66879 | refs/heads/master | 2023-09-06T01:16:06.357182 | 2022-11-02T18:00:25 | 2022-11-02T18:00:25 | 3,762,517 | 718 | 74 | Apache-2.0 | 2022-01-26T11:07:29 | 2012-03-19T09:59:18 | Python | UTF-8 | Python | false | false | 5,570 | py | ###############################################################################
##
## Copyright (c) Crossbar.io Technologies GmbH
##
## 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
##
##... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
3c37470e6687cc51f01b3bfb39c7f931f854f693 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Gio/SocketServiceClass.py | 8c18c95238ae487ac715dd801bd46c959b88b0ce | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 5,419 | py | # encoding: utf-8
# module gi.repository.Gio
# from /usr/lib64/girepository-1.0/Gio-2.0.typelib
# by generator 1.147
# no doc
# imports
import gi as __gi
import gi.overrides as __gi_overrides
import gi.overrides.Gio as __gi_overrides_Gio
import gi.overrides.GObject as __gi_overrides_GObject
import gi.repository.GObjec... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
816ae873b0b90fcf3321f06f6a70489ed6eaeaa6 | c07380914a44df334194f234c33858f357365c19 | /ENV/lib/python2.7/site-packages/theano/tensor/tests/test_gc.py | d1304de7e268985aa6ba0543e87bf76860c9f26b | [] | no_license | damianpolan/Music-Genre-Classification | 318952ae7de5d0b0bdf5676e28071c7b38d0e1c5 | acd723ae1432ce798866ebb97ef3c484db37e971 | refs/heads/master | 2022-12-24T09:23:55.514337 | 2016-03-22T14:49:28 | 2016-03-22T14:49:28 | 42,965,899 | 4 | 4 | null | 2022-12-12T20:26:24 | 2015-09-22T23:05:37 | Python | UTF-8 | Python | false | false | 4,130 | py | import cPickle
import sys
import numpy
import theano
from theano import tensor as T
import time
def test_no_reuse():
x = T.lvector()
y = T.lvector()
f = theano.function([x, y], x + y)
#provide both inputs in the first call
f(numpy.ones(10, dtype='int64'), numpy.ones(10, dtype='int64'))
try:
... | [
"damian.polan@gmail.com"
] | damian.polan@gmail.com |
a2c2e07a8afdcf2c8f91018caceb18c216081b48 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Kivy/kivy/examples/canvas/fbo_canvas.py | dd06928bdb98fedb7c9f34cb533e75a733227641 | [
"MIT"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0cc3f5272ba46eb262d440a5c297b24905c455a2aa930e0baaa5f7f37b3486e6
size 2544
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
3a89353fe1bf9bc2c3a18a54b8aa626d89c3dc77 | 15978aacf0e44a890e36ff94c305aca5a056e5e8 | /13day/10-有返回的装饰器和通用的装饰器.py | 49f8d4065d8cba8ccf18b0da1614f1193e0a14d8 | [] | no_license | ittoyou/1805_python_2 | ffbe613d893208b2454ef4f25cc2b8a9951ff047 | 1d6331a83598863042912bb26205d34417abed73 | refs/heads/master | 2020-03-24T13:58:12.276827 | 2018-07-27T07:58:57 | 2018-07-27T07:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | def w1(fun):
def inner(*args,**kwargs):
print("验证登录")
return fun(*args,**kwargs)
return inner
@w1
def play(a,b):
print("------------%s-----%s----------"%(a,b))
return "hehe"
ret = play("1","2")
print(ret)
@w1
def play1():
print("哈哈哈")
play1()
@w1
def play2(a):
print("哈哈哈2%s... | [
"qingyuan@geekniu.com"
] | qingyuan@geekniu.com |
3679dbbc8bc44685045edec9a6d71a1e00d53833 | 45ee96b582d7b3e045819db510088d2cb640dfde | /BOJ/Previous/Implementation/완전제곱수.py | e78f92dafcc73f0e1bfc49baa5f3d15bd4298468 | [] | no_license | tom9744/Algorithms | e54b649014f3b478bfbc7a0f9e8e56ad5dbc1304 | 4496b1c992ab4322289e5a200567f3df00478917 | refs/heads/master | 2023-05-06T00:59:12.767655 | 2021-05-26T16:26:50 | 2021-05-26T16:26:50 | 330,401,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # 1977 : 완전제곱수
import math
M = int(input())
N = int(input())
perfect_square_numbers = []
for number in range(M, N + 1):
if math.sqrt(number).is_integer():
perfect_square_numbers.append(number)
if len(perfect_square_numbers) == 0:
print(-1)
else:
print(sum(perfect_square_numbers))
print(perf... | [
"tom9744@gmail.com"
] | tom9744@gmail.com |
f2257a66a17f8b82a0bb0a42260b553d534f2889 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616203432.py | d8f31778d62ce6a0b3ed7002c575bb9870500ea2 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # Ipv4 --> 4 decimal numbers,between 0 to 255
# leading zero's is invalid
# check whethere its a digit between 0 to 255
def valid(str):
address = str.split(".")
numbers = range()
for a in address:
if a
print(address)
valid("172.16.254.01") | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
f695b79388c07e89cfa05c0175e698eadc9d3daa | 8523daaf19e0250962b454d9c4f87f4c7d71ab9d | /models.py | d70630bbfa64fe60497c69c7bc15cf28c945160d | [] | no_license | madtyn/cris | ad2fd35a05efb6829e96bd1aa39c86a0efa8102f | a45410e6a67f589ac7d392bebc1ee9725ff4cd1b | refs/heads/master | 2020-11-30T17:42:09.675319 | 2020-01-19T10:36:32 | 2020-01-19T10:36:32 | 230,450,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py |
import datetime as dt
from enum import Enum
from collections import namedtuple
from indexes import FIRST_MONTH_COL, COLS_PER_MONTH
StudentMonth = namedtuple('StudentMonth', ['quota', 'number', 'processed'])
class Months(Enum):
OCTOBER = ('Octubre', 10)
NOVEMBER = ('Noviembre', 11)
DECEMBER = ('Diciemb... | [
"madtyn@gmail.com"
] | madtyn@gmail.com |
249d0fc847698e8656f69bffdac9648ab002c339 | 45614a944ffbdb75a0bef955582a722da5ce7492 | /python/selenium/delta_time.py | f3a2a4edc43929e36dcdc6408809e7ed0457801f | [] | no_license | wccgoog/pass | 1c8ab5393547634a27c7543556a75dec771a9e3d | 0ec01536ae10b3d99707002c0e726072acb50231 | refs/heads/2 | 2023-01-15T13:27:26.312648 | 2019-10-23T09:30:45 | 2019-10-23T09:30:45 | 122,595,075 | 0 | 2 | null | 2023-01-07T10:42:38 | 2018-02-23T08:38:36 | JavaScript | UTF-8 | Python | false | false | 1,938 | py | # -*- coding: utf-8 -*-
import datetime,time
from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
def write_del... | [
"wcc3@sina.com"
] | wcc3@sina.com |
11d91f7682d807291ec8c6d20fa64f3166ad3a77 | f682c74fb65f0d951821b77bf96cee28d00ae3dd | /博物馆网数据采集子系统/展览爬取/广东省博物馆展览爬取.py | a267ae318e81038908bb00ebc4349ddfeb6944bd | [] | no_license | 1806-1/Software-engineering | 7e5add7b40d123dca0daa39d83a8fc4c16f8cb0d | 0a75ed857410bb8e1f882bd8e49504c43590ffd8 | refs/heads/main | 2023-05-13T00:07:58.579811 | 2021-06-06T08:09:41 | 2021-06-06T08:09:41 | 354,178,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,947 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 16 09:21:11 2021
@author: lenovo
"""
import requests
import pandas as pd
import csv
from bs4 import BeautifulSoup
hdrs = {'User-Agent':'Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)'}
# 博物馆活动列表页网址
url = "http://www.gd... | [
"noreply@github.com"
] | 1806-1.noreply@github.com |
7ffa82f194c3ea745e4353afbfb80085484f5606 | dd256415176fc8ab4b63ce06d616c153dffb729f | /aditya-works-feature-python_programming (1)/aditya-works-feature-python_programming/23-Jul-2019/method_examples/class_methods_2.py | 05e1064eb9949454b9956604a1def6df3fba359e | [] | no_license | adityapatel329/python_works | 6d9c6b4a64cccbe2717231a7cfd07cb350553df3 | 6cb8b2e7f691401b1d2b980f6d1def848b0a71eb | refs/heads/master | 2020-07-24T17:15:39.839826 | 2019-09-12T07:53:28 | 2019-09-12T07:53:28 | 207,993,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | class DecoratorExample:
def __init__(self):
print('Hello, world')
@classmethod
def example_function(cls):
print("In a class method ")
cls.some_other_function()
@staticmethod
def some_other_function():
print('Hello')
de = DecoratorExample()
de.example_function()
| [
"aditya.patel@1rivet.local"
] | aditya.patel@1rivet.local |
14e8824bedd651f4e64c978ea76622167087b5e4 | 7c9dfab9ee71de58544190fcdb8c145fcc73be20 | /keras_style_transfer/library/style_transfer.py | 412031162ead989af4fe10510b4a7548f6218b10 | [
"MIT"
] | permissive | javad-sajady/keras-style-transfer | 1b7b2258729d90fa9716b20aafa3a759ec64fb87 | 2cb755498bc64d26bedc2e660604eee48fa15aa3 | refs/heads/master | 2021-09-07T00:17:00.014549 | 2018-02-14T02:32:06 | 2018-02-14T02:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,004 | py | from keras_style_transfer.library.nst_utils import *
from keras_style_transfer.library.download_utils import download_vgg19
import numpy as np
import tensorflow as tf
def compute_content_cost(a_C, a_G):
"""
Computes the content cost
Arguments:
a_C -- tensor of dimension (1, n_C, n_H, n_W), hidden lay... | [
"xs0040@gmail.com"
] | xs0040@gmail.com |
199693aef1523a92dec280c913acd26fa75b684e | e21e7623d99312dc8a4c0eedc0febb22d24c7918 | /venv/bin/futurize | fa21932432d4e2703fbdc5920b7e4f2b8d2c7dd4 | [] | no_license | axelonet/E-voting-system-on-blockchain | 49aa9b2b45f75e85ed9de4d113849c1f3d95dd1d | 2651bab50f29a2b68ad17b2d2240279af2f24419 | refs/heads/master | 2023-01-04T04:03:44.817356 | 2020-04-15T06:06:36 | 2020-04-15T06:06:36 | 255,822,230 | 1 | 0 | null | 2020-10-25T11:52:19 | 2020-04-15T06:12:39 | null | UTF-8 | Python | false | false | 446 | #!"/Users/anmolpanwar/Documents/PycharmProjects/python practice/venv/bin/python"
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"anmolpanwar8@gmail.com"
] | anmolpanwar8@gmail.com | |
722e532abb9d183c9faeb239a798949f7cbb32e0 | a75b7fd002a9f8b4823dcc9cd6c2c5291ea31fe8 | /ir_datasets/datasets/wikir.py | cfa056b832e3aa089533038d543bd5ee028d47f4 | [
"Apache-2.0"
] | permissive | FRD898/ir_datasets | 3edadc3859eb3c3c7a3f7c33c14aebe709aad2f2 | e4bfec64d41cc09c84315f675f2af768ea26f5b4 | refs/heads/master | 2023-06-16T10:32:12.367257 | 2021-07-18T10:41:20 | 2021-07-18T10:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | import contextlib
from pathlib import Path
from typing import NamedTuple
import ir_datasets
from ir_datasets.util import ZipExtractCache, DownloadConfig
from ir_datasets.datasets.base import Dataset, YamlDocumentation
from ir_datasets.formats import CsvQueries, CsvDocs, TrecQrels, TrecScoredDocs
NAME = 'wikir'
_logge... | [
"sean.macavaney@gmail.com"
] | sean.macavaney@gmail.com |
93d973806b72476402c087079c684e78920c1e44 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/letters.py | 4d6a222a879f80298b4d6ad5f5d5743deb44e15d | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('letters', __name__, url_prefix='/letters')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('repub... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
71a1d35afe3081aaa5e44192447c7494b4a5050e | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py | 8ca5cfea37c17dd1bd1b22ec0ca9d9f1a79ba8bd | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 2,910 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.4.1, generator: @autorest/python@5.6.4)
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# -------------------------------... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
c9a499e0b0d202e5ea52f5ef6a9c4580d811345f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_45/72.py | 8cf783ea15df40bf45a0fc4e0429b4f48fca706b | [] | 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 | 2,556 | py | #!/usr/bin/env python
#
# jam.py
#
# Copyright 2009 Denis <denis@denis-desktop>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, o... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
137982ad4fabf053ac21d39abd872101e3ece56c | b124d99a5d7a139d31405aefdbfed09f6eb3d55b | /beebcn/spiders/beebcn.py | 0ee6535f8b6015585dac04bef036e47860cb503b | [] | no_license | daniel-kanchev/beebcn | 26efaab276e525b919b4fbeb06251a2850573de4 | d7e8142b41501b2586e0f8e01f8a690355701268 | refs/heads/main | 2023-04-04T05:08:37.732275 | 2021-04-15T11:13:28 | 2021-04-15T11:13:28 | 358,230,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | import scrapy
from scrapy.loader import ItemLoader
from itemloaders.processors import TakeFirst
from datetime import datetime
from beebcn.items import Article
import requests
import json
import re
class beebcnSpider(scrapy.Spider):
name = 'beebcn'
start_urls = ['http://www.beeb.com.cn/#/home/banknews']
d... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
4d4c3f3cfe74ab3c276e571e2d0a0a5b1a44d225 | 0e3a9758175f37e4d702ff6ccd6d2ee2e91f727f | /deepiu/util/input_flags.py | dc4a03cedbc127ecd0561e778b87fc24b49be5f1 | [] | no_license | hitfad/hasky | 94d7248f21a1ec557a838b77987e34b77fb9a0c7 | c1d2d640643037c62d64890c40de36ba516eb167 | refs/heads/master | 2021-01-20T22:55:36.778378 | 2017-08-29T13:23:50 | 2017-08-29T13:23:50 | 101,830,092 | 1 | 0 | null | 2017-08-30T02:48:35 | 2017-08-30T02:48:35 | null | UTF-8 | Python | false | false | 5,849 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file input_flags.py
# \author chenghuige
# \date 2016-12-25 00:17:18.268341
# \Description
# ============================================================... | [
"29109317@qq.com"
] | 29109317@qq.com |
047d839364b362aa6a76bfe9643bcb4b78963590 | ab1c920583995f372748ff69d38a823edd9a06af | /shultais_courses/dictionaries/intro_to_dictionaries/digits_rus_eng.py | 8c5217d96a9dfe04a252496ac2455eacff1ddcc8 | [] | no_license | adyadyat/pyprojects | 5e15f4e33892f9581b8ebe518b82806f0cd019dc | c8f79c4249c22eb9e3e19998d5b504153faae31f | refs/heads/master | 2022-11-12T16:59:17.482303 | 2020-07-04T09:08:18 | 2020-07-04T09:08:18 | 265,461,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | import sys
key = int(sys.argv[1])
value = sys.argv[2]
digits = {
1: {"ru": "один", "en": "one"},
2: {"ru": "два", "en": "two"},
3: {"ru": "три", "en": "three"},
4: {"ru": "четыре", "en": "four"},
5: {"ru": "пять", "en": "five"},
6: {"ru": "шесть", "en": "six"},
7: {"ru": "семь", "en": "sev... | [
"omorbekov.a@gmail.com"
] | omorbekov.a@gmail.com |
53a9e7b485281b9e04dc2f024cb312a1c0bfe6fa | cd21d80241deeb96f4acf16e865cef439b3158d1 | /manage.py | bba21b475398de4476bf5a91b9cbc71c682bea8d | [] | no_license | sankha555/DBPortal | 72cac7118334337fc653ce2c0c133598c4f783d1 | 6e8354df09f34e0a6708630524e10f6949301de7 | refs/heads/master | 2020-12-02T07:26:42.624213 | 2019-12-30T15:00:42 | 2019-12-30T15:00:42 | 230,722,294 | 0 | 0 | null | 2019-12-29T08:14:33 | 2019-12-29T08:14:33 | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dbportal.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"f20190029@pilani.bits-pilani.ac.in"
] | f20190029@pilani.bits-pilani.ac.in |
661213532518f79f4fbd1621693e6a80ee48a239 | 86206b05a6e0a425ba5401de50b8645bddf77780 | /Oper Python/Oper Cobra/Sandbox/SFDCLib.py | 774e5e469ac749c3fe50e5a661a4ac709b6b7eff | [] | no_license | QuestTestAutomation/PersistentDesktop1python | 2e626ea16ce0fd4c697b156fdc2f9b3ca85bbd7b | ece25957edb6f87b2777b261b31914d22ebd99ad | refs/heads/master | 2021-03-10T21:55:25.450872 | 2020-03-27T09:45:14 | 2020-03-27T09:45:14 | 246,488,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,048 | py | from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from robot.libraries.BuiltIn import BuiltIn
from selenium.webdriver.support.ui import Select
import time
import r... | [
"45171766+QuestTestAutomation@users.noreply.github.com"
] | 45171766+QuestTestAutomation@users.noreply.github.com |
cf53ef5ed08b07917f1bafebfd98837aa6df5e39 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/site-packages/django/contrib/auth/migrations/0004_alter_user_username_opts.py | 8f8441f88f5e0f3b2074e39c01c7ef863cb3c28a | [] | 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:68dd281e8039ab66caa4937c4a723c4fd18db5304accb445a332fceed361f3f2
size 785
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
4dafd2675375326d00071f92b91080bea9677ef3 | 1498148e5d0af365cd7fd16197174174a7fa9800 | /t001481.py | 4bca6b1596cd106695153b484bdcabd65c9b8121 | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | for T in range(int(input())):
b = list(bin(int(input())).replace("0b", ""))
if b[-1] == "1":
for i in range(len(b) - 1, -1, -1):
if b[i] == "1":
b[i] = "0"
else:
break
print("".join(b)) | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
6f3f18539c8923851681793d40f4dcb3f50d3d64 | 60d2212eb2e287a0795d58c7f16165fd5315c441 | /app01/migrations/0001_initial.py | 3a9dc3818912587831f59c416cdcc28191857ff6 | [] | no_license | zhouf1234/mysite2 | 29145ceb470273f39fc11dd91945203db7fe0238 | 63747c789d39cf752f2b80509d8e3db9145b3492 | refs/heads/master | 2020-05-05T03:11:31.696639 | 2019-04-05T10:41:42 | 2019-04-05T10:41:42 | 179,663,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 2.1.2 on 2018-11-01 09:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(pri... | [
"="
] | = |
6409ffff6a083b3c48d050cf0b0da4cd4e24c754 | 98811c0c149c1873c12322f20345dab1488a1870 | /nnet/hue/split_data.py | 421bc33d6fd8d8aa179440fa714ee4c730371b24 | [] | no_license | mverleg/kaggle_otto | 682d5f83a070b7e88054401e6fba221d8e1b6227 | b23beb58a1a0652e9eb98f5db31eae52303b6f85 | refs/heads/main | 2021-01-17T08:54:39.096781 | 2016-04-12T09:25:26 | 2016-04-12T09:25:26 | 37,781,556 | 0 | 1 | null | 2016-04-12T09:25:27 | 2015-06-20T18:47:45 | Python | UTF-8 | Python | false | false | 226 | py |
def split_data(data, labels, test_frac = 0.1):
N = int(len(labels) * test_frac)
train = data[N:, :]
test = data[:N, :]
train_labels = labels[N:]
test_labels = labels[:N]
return train, train_labels, test, test_labels
| [
"mark@rafiki"
] | mark@rafiki |
b8212889d6b20712d6dc7e09b2af346ddbf3babd | 13a954fed4bced90c325e5508900b0f8665d0f08 | /day_2/list_iterate.py | 80d62d57c8fcf03d73a7af678bee6a0920c0d396 | [
"MIT"
] | permissive | anishLearnsToCode/ml-workshop-wac-2 | 64b84589fa0b45057bf36bd1f073f12a17a8eba2 | 9992acd30f4b74ce2debf0d5ff3d8a1b78b1163f | refs/heads/main | 2023-02-21T02:36:06.542630 | 2021-01-19T17:38:48 | 2021-01-19T17:38:48 | 327,333,663 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | numbers = [2, 3, 5, 7, 11, 13, 19, 23]
for number in numbers:
print(number)
| [
"anish_@outlook.com"
] | anish_@outlook.com |
3dfe193901cf9aa28f6a4d72adcdaf72d7bf3727 | d27af2880f61e8e4b1848559dd06155a456874fe | /dev_reference_lines/ourmatplotlib.py | d93c5bd1a724a796269d21222c281372ce67e6d7 | [] | no_license | CINF/cinfdata | 6c60371cdca69409be139dd1f0eab9288da422c0 | d91b0e292095ee2ba748ebd803b794c00be37d43 | refs/heads/master | 2023-08-17T11:35:01.321323 | 2023-08-11T06:54:37 | 2023-08-11T06:54:37 | 58,733,415 | 0 | 3 | null | 2023-08-11T06:54:38 | 2016-05-13T11:23:33 | Python | UTF-8 | Python | false | false | 16,407 | py | #!/usr/bin/python
"""
This file is part of the CINF Data Presentation Website
Copyright (C) 2012 Robert Jensen, Thomas Andersen and Kenneth Nielsen
The CINF Data Presentation Website is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free S... | [
"k.nielsen81@gmail.com"
] | k.nielsen81@gmail.com |
c477ff81c9b1feba08d0ef6621a1c2c2e4a1acac | b5c5c27d71348937322b77b24fe9e581cdd3a6c4 | /tests/pyutils/test_is_invalid.py | d39c12e2c935eb05fc776988bbe838d3d98d9059 | [
"MIT"
] | permissive | dfee/graphql-core-next | 92bc6b4e5a39bd43def8397bbb2d5b924d5436d9 | 1ada7146bd0510171ae931b68f6c77dbdf5d5c63 | refs/heads/master | 2020-03-27T10:30:43.486607 | 2018-08-30T20:26:42 | 2018-08-30T20:26:42 | 146,425,198 | 0 | 0 | MIT | 2018-08-28T09:40:09 | 2018-08-28T09:40:09 | null | UTF-8 | Python | false | false | 865 | py | from math import inf, nan
from graphql.error import INVALID
from graphql.pyutils import is_invalid
def describe_is_invalid():
def null_is_not_invalid():
assert is_invalid(None) is False
def falsy_objects_are_not_invalid():
assert is_invalid('') is False
assert is_invalid(0) is False... | [
"cito@online.de"
] | cito@online.de |
5628b540ad53bf7290b179cb3f6de1f245706da2 | bd3528cc321dc37f8c47ac63e57561fd6432c7cc | /transformer/tensor2tensor/models/xception.py | 2452a7d4ff23d06b687e61f5eea6106e13c22930 | [
"MIT",
"Apache-2.0"
] | permissive | oskopek/cil | 92bbf52f130a1ed89bbe93b74eef74027bb2b37e | 4c1fd464b5af52aff7a0509f56e21a2671fb8ce8 | refs/heads/master | 2023-04-15T10:23:57.056162 | 2021-01-31T14:51:51 | 2021-01-31T14:51:51 | 139,629,560 | 2 | 5 | MIT | 2023-03-24T22:34:39 | 2018-07-03T19:35:24 | Python | UTF-8 | Python | false | false | 5,857 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"lukas.jendele@gmail.com"
] | lukas.jendele@gmail.com |
2f816bb890383cc7f178bf5be4d2290e2fbdfa61 | 4e81512b34223788559ea1c84acb2ef0aa4d899d | /booktracker/settings.py | 6831cbc70ea526b979e29eb6fc1e105511cae832 | [] | no_license | arsummers/book-tracker-django | 75a2e559c5dd05be67287a40514533a699889368 | 012fa821288ee99f45665e017bc8b7ab4db54a1f | refs/heads/master | 2022-12-11T16:28:27.393199 | 2019-10-15T21:28:37 | 2019-10-15T21:28:37 | 209,672,800 | 0 | 0 | null | 2022-12-08T06:38:29 | 2019-09-20T00:37:11 | Python | UTF-8 | Python | false | false | 3,428 | py | """
Django settings for booktracker project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"aliyasummers1@gmail.com"
] | aliyasummers1@gmail.com |
5ac388b69a2ab3c163d4dd86e79293977f264fc7 | aa1e637de90f69f9ae742d42d5b777421617d10c | /nitro/resource/config/cs/csvserver_cspolicy_binding.py | e6035fde5b4e240edfc80048627a63609ec4ab92 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | km0420j/nitro-python | db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba | d03eb11f492a35a2a8b2a140322fbce22d25a8f7 | refs/heads/master | 2021-10-21T18:12:50.218465 | 2019-03-05T14:00:15 | 2019-03-05T15:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,684 | py | #
# Copyright (c) 2008-2015 Citrix Systems, 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"lennart.weller@hansemerkur.de"
] | lennart.weller@hansemerkur.de |
5748492e1ac68fbb9456a149c63bf5d73cb70cb7 | 1edb8304c6429729ffc2bab8a13f4123e19d2b32 | /azure-export/settings.py | c35f8f6b2df73b7a2759d73c4be11b093fe95853 | [] | no_license | watchdogpolska/docker-images | d8292fc03df806f5be3a976cf87272f2d46e0b13 | 7a569e1d0cef4a4f57517daeac0456a59a25d021 | refs/heads/master | 2021-09-22T00:26:11.317526 | 2021-08-14T02:40:43 | 2021-08-14T02:41:33 | 157,301,522 | 0 | 4 | null | 2021-07-15T23:54:21 | 2018-11-13T01:26:54 | Python | UTF-8 | Python | false | false | 1,023 | py | import os
import dataset
from azure.mgmt.storage import StorageManagementClient
from azure.mgmt.resource import ResourceManagementClient
from msrestazure.azure_active_directory import ServicePrincipalCredentials
# $ az ad sp create-for-rbac --name "MY-PRINCIPAL-NAME2" --password "XXX" --verbose
# $ az role assignment ... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
410f343e06b5a2e46e0ac58189f5fc2337669859 | 15a992391375efd487b6442daf4e9dd963167379 | /monai/networks/nets/__init__.py | cd9329f61baf93158a6a3aa20992150937c07ed3 | [
"Apache-2.0"
] | permissive | Bala93/MONAI | b0e68e1b513adcd20eab5158d4a0e5c56347a2cd | e0a7eff5066da307a73df9145077f6f1fec7a514 | refs/heads/master | 2022-08-22T18:01:25.892982 | 2022-08-12T18:13:53 | 2022-08-12T18:13:53 | 259,398,958 | 2 | 0 | null | 2020-04-27T17:09:12 | 2020-04-27T17:09:11 | null | UTF-8 | Python | false | false | 2,805 | py | # Copyright (c) MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | [
"noreply@github.com"
] | Bala93.noreply@github.com |
2b3c16897a3b35cc9e66306da93eacb32c23e5ef | 0d5de943909877c01b485d8a918d8bef0cf9e196 | /plugins/CompleteLikeEclipse/scribes/edit/complete_like_eclipse/__init__.py | 1bf51577114ffc6ae996e45832814ec68d606743 | [
"MIT"
] | permissive | baverman/scribes-goodies | 31e2017d81f04cc01e9738e96ceb19f872a3d280 | f6ebfe62e5103d5337929648109b4e610950bced | refs/heads/master | 2021-01-21T10:13:08.397980 | 2013-09-25T16:33:05 | 2013-09-25T16:33:05 | 854,207 | 2 | 1 | null | 2013-09-25T16:33:05 | 2010-08-22T03:12:39 | Python | UTF-8 | Python | false | false | 4,949 | py | from gettext import gettext as _
from string import whitespace
from scribes.helpers import TriggerManager, Trigger, connect_external, connect_all
from signals import Signals
from IndexerProcessManager import Manager as IndexerProcessManager
from DictionaryManager import Manager as DictionaryManager
from ProcessCo... | [
"bobrov@vl.ru"
] | bobrov@vl.ru |
d8e032b3398ca8b4d5089d70996f8278fc086e9d | 123cf58c5dc4800d5d50fd2934cc63be1080e093 | /models/string_cluster_model/encoder_network.py | 33989eff917210d26d9f229c5dc93a45db8912b7 | [] | no_license | nitishgupta/char-encode-decode | dd303a9aa77a3af9000e275bcb86abb18d0b7d84 | eb4bbb8be701c3cbb4476a779094c45458a1daef | refs/heads/master | 2021-04-30T23:25:49.895472 | 2017-09-03T06:37:55 | 2017-09-03T06:37:55 | 66,794,519 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | import time
import tensorflow as tf
import numpy as np
from models.base import Model
class EncoderModel(Model):
"""Unsupervised Clustering using Discrete-State VAE"""
def __init__(self, num_layers, batch_size, h_dim, input_batch, input_lengths,
char_embeddings, scope_name, dropout_keep_prob=1.0)... | [
"gnnitish@gmail.com"
] | gnnitish@gmail.com |
50757308714e1748bc154ae1b6b8a9944dfd0fca | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/sxj.py | 95c3a20eebf162044696cda87af0444abb3afeb2 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
5a4102380ceda801c33ba27df61c91998ba24ab0 | c4943748c504f26e197ce391c747bb5a4c146be2 | /trade_data_get/future_daily_point_data.py | 242777b92ad8080f11fc2e523a24c024c3dba7a1 | [] | no_license | NewLanded/security_data_store | 88919c233d6bd22b20d0d9918c8e2ffcafc33c3e | d23c68777e6ecb0641cb5c6f7061b1c11d208886 | refs/heads/master | 2021-07-21T12:55:47.650454 | 2021-06-30T07:32:00 | 2021-06-30T07:32:00 | 133,665,767 | 1 | 0 | null | 2018-05-16T13:03:35 | 2018-05-16T12:56:05 | null | UTF-8 | Python | false | false | 1,715 | py | import datetime
import time
import tushare as ts
from conf import PRO_KEY
from util_base.date_util import convert_datetime_to_str, convert_str_to_datetime, get_date_range
from util_base.db_util import engine
from util_base.db_util import store_failed_message
from util_data.date import Date
ts.set_token(PRO_KEY)
pro ... | [
"l1141041@163.com"
] | l1141041@163.com |
658188357a420a967626a633ab73119b6a6a95f5 | f89b26d9c53b1d5cc6b14d7f20c57772c98fb53d | /plus minus.py | 3620c88e652db9cf30d344d0e8462e9fc3708813 | [] | no_license | Mityun/Analitic_of_my_book | 9be73824b0d218f87619e938ef0b0ceeb57e1310 | dd9842925205b3ec55179ae00df798031dcf8c26 | refs/heads/main | 2023-08-14T10:41:33.105877 | 2021-10-10T07:32:23 | 2021-10-10T07:32:23 | 326,292,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | q = float(input())
w = float(input())
e = input()
if e == "-" and w != 0:
print(q - w)
elif e == "+" and w != 0:
print(q + w)
elif e == "*" and w != 0:
print(q * w)
elif e == "/" and w != 0:
print(q / w)
elif e != "+" and e != "-" and e != "*" and e != "/":
print(888888)
elif w == 0:
print(88888... | [
"you@example.com"
] | you@example.com |
c74942de61e4a32ff2a0a0be62da3f16bf3c27a3 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.10/test_input/CJ_16_2/16_2_1_anthrocoder_digits.py | 595c608a01ecda0f5fcd93bfb768e0ff0aab1314 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 944 | py | import sys
try:
f = open(sys.argv[1])
out = open(sys.argv[1].rpartition("\\")[2]+".out", 'w')
numTests = int(f.readline())
for i in range (0, numTests):
note = f.readline()
# print (note)
phoneNo = ""
zeros = note.count("Z")
# print ("found zeros: " + str(zeros))
twos = note.co... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
df05476a55d74eac175c02cf47d0431568781b2d | a84e1ed67ef2592cf22f7d19cdddaf16700d6a8e | /graveyard/web/VNET/branches/vnf/vnf/components/NeutronExperiment.py | 8fd30a324c74a91f7ace04f9b8a10a6528a0f084 | [] | no_license | danse-inelastic/inelastic-svn | dda998d7b9f1249149821d1bd3c23c71859971cc | 807f16aa9510d45a45360d8f59f34f75bb74414f | refs/heads/master | 2016-08-11T13:40:16.607694 | 2016-02-25T17:58:35 | 2016-02-25T17:58:35 | 52,544,337 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 24,209 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"yxqd@users.noreply.github.com"
] | yxqd@users.noreply.github.com |
189234dba477920e20978a90104fe63bbe85f33a | ccce57307a499b49b14c8b16706166b08df1c5c1 | /database.py | e454dfecf3c38702f9373d274b585f469e9ff64e | [
"MIT"
] | permissive | simrit1/CubeTimer | 6ea1ca4549865317c947a3a91d3a57f1786f198c | b226ae875cde35fb573c618d70a408421e0e9f07 | refs/heads/master | 2023-07-01T20:38:20.983300 | 2021-07-18T02:04:33 | 2021-07-18T02:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,306 | py | import sqlite3
from CubeUtilities import Time, MultiPhaseTime
class Database:
def __init__(self, table_name, db_dir):
self.database_path = db_dir
self.table_name = table_name
self.closed = False
try:
self.conn = sqlite3.connect(self.database_path)
except sqlite3.Error:
raise Exception(f... | [
"noreply@github.com"
] | simrit1.noreply@github.com |
3a9baf4f9122069e89d3d3e9c447adba687d8866 | 7942342d457276bb266228d0236af647b3d55477 | /django/contrib/gis/gdal/geomtype.pyi | 4d825dbc2a0344758cb103a9b71335753e67e32a | [
"MIT"
] | permissive | AsymmetricVentures/mypy-django | 847c4e521ce4dec9a10a1574f9c32b234dafd00b | f6e489f5cf5672ecede323132665ccc6306f50b8 | refs/heads/master | 2020-06-30T01:53:44.434394 | 2016-12-22T22:45:50 | 2016-12-22T22:45:50 | 74,397,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | pyi | # Stubs for django.contrib.gis.gdal.geomtype (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class OGRGeomType:
wkb25bit = ... # type: int
num = ... # type: Any
def __init__(self, type_input) -> None: ...
def __eq__(self, other): ...
... | [
"reames@asymmetricventures.com"
] | reames@asymmetricventures.com |
5f20947d37c40b225caf658aa24de35a3409eda0 | 1e9ad304868c2bda918c19eba3d7b122bac3923b | /kubernetes/client/models/v1_scale_spec.py | 4cbe43889993ed0f39cd92d9f358c3267a860626 | [
"Apache-2.0"
] | permissive | pineking/client-python | c77e5bd3d476ac852e6dffa96056008baa0f597f | 74a64d7325518f4298600d4bb300f92843c29347 | refs/heads/master | 2021-01-22T22:16:27.368406 | 2017-03-15T08:21:21 | 2017-03-15T08:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.1-660c2a2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
im... | [
"mehdy@google.com"
] | mehdy@google.com |
b3d3277c535eaa6f706a071f5b547c8b412419d8 | c1d03f41b6c80ef1e0a42b1bb710ba90d680e4c2 | /tests/unit/test_xmlgen.py | f4224d6cded6be0fe94660d2a9f52f5f3283b56e | [
"BSD-3-Clause"
] | permissive | boxingbeetle/softfab | 4f96fc389dec5cd3dc987a427c2f491a19cbbef4 | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | refs/heads/master | 2021-06-22T15:42:38.857018 | 2020-11-23T22:53:21 | 2020-11-23T22:53:21 | 169,245,088 | 20 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,294 | py | # SPDX-License-Identifier: BSD-3-Clause
"""Test XML generation module."""
from pytest import raises
from softfab.xmlgen import parseHTML, xhtml
# Test text inside the <script> XHTML element:
def testScriptNoEscape():
"""Check that no escaping is performed when it is not necessary."""
text = 'if (a > b) r... | [
"maarten@boxingbeetle.com"
] | maarten@boxingbeetle.com |
9074795f04fffda1859ceabffe3265b9dad61ac4 | c7cba1dad777f461ea546d0437528c985be3c051 | /client.py | 559f6546c5344baecc2df329d11dee988617cc63 | [
"MIT"
] | permissive | elliotthwang/NLU | 000127b561c5b99340b04bf78aa65ff6ea28c79a | 0e6a96e4c2f363beb4241b4371244a5229e72811 | refs/heads/master | 2022-01-12T06:51:00.036787 | 2018-10-07T21:56:15 | 2018-10-07T21:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | ############################################################################################
#
# The MIT License (MIT)
#
# GeniSys NLU Engine API Client
# Copyright (C) 2018 Adam Milton-Barker (AdamMiltonBarker.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software an... | [
"adammiltonbarker@eu.techbubbletechnologies.com"
] | adammiltonbarker@eu.techbubbletechnologies.com |
ca8705cc1f1359d399708435066d644118c8025c | eba283c7b7d07c9ff15abee322da8fea460ea6be | /__init__.py | a81e1e6e897d836c409125c7fc0208faa64f920a | [] | no_license | ROB-Seismology/layeredbasemap | 5bfa3daad9b2e47a1fea35c652309541ac88ac23 | 122464656d5534798c4bba38cdda2638e7d8948f | refs/heads/master | 2021-01-20T17:33:02.596090 | 2020-12-16T10:30:54 | 2020-12-16T10:30:54 | 90,877,746 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | """
layeredbasemap
Module to create maps with Basemap using the GIS layer philosophy,
where each layer is defined by a dataset and style.
Author: Kris Vanneste, Royal Observatory of Belgium
"""
from __future__ import absolute_import, division, print_function, unicode_literals
## Make relative imports work in Pytho... | [
"kris.vanneste@oma.be"
] | kris.vanneste@oma.be |
b20d17916565894c0ad9d4c6695c25d8b0ded9b1 | 5b5d46b4a47ab365688af03afdbec24e885a2c90 | /21/21.py | 19a6901a33b382a6d732eace82edb63fc3f53e03 | [] | no_license | CA2528357431/python-base--Data-Structures | e9e24717ae016c4ca4a15805f261fd48f377ac6b | dccbcb27d82f2264947458686900addf2b83faad | refs/heads/main | 2023-07-04T08:32:52.551200 | 2021-07-30T16:21:31 | 2021-07-30T16:21:31 | 386,671,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | # 二叉树
# 27非递归遍历
class tree:
def __init__(self, root, left=None, right=None):
self.nodes = []
self.root = root
self.left = left
self.right = right
self.data = None
# root作为排序依据
# data存数据
# 后续几个二叉树用例就不带数据了
@property
def lisp(self):
... | [
"2528357431@QQ.com"
] | 2528357431@QQ.com |
7b610bf2dc37263d332476c74cca4f006e5c126c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02628/s221826573.py | 8d9cc91fbf2407d05ab712842180953fe7ae11f1 | [] | 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 | 124 | py | N, K = map(int, input().split())
p_list = list(map(int, input().split()))
p_list = sorted(p_list)
print(sum(p_list[:K])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
39d9972ace9b2b675fc010522f98d7a0c2e20feb | e7a5e140ccacc10a4c51b66fa5942974330cce2c | /py_insightvm_sdk/models/vulnerability.py | 5ca229c4badf76227f09dee1e06eaf8e7fb2b306 | [
"Apache-2.0"
] | permissive | greenpau/py_insightvm_sdk | 38864c7e88000181de5c09302b292b01d90bb88c | bd881f26e14cb9f0f9c47927469ec992de9de8e6 | refs/heads/master | 2020-04-21T08:22:31.431529 | 2020-02-27T02:25:46 | 2020-02-27T02:25:46 | 169,417,392 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,459 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"greenpau@outlook.com"
] | greenpau@outlook.com |
5fdd01c76510a26587a3b1a59f24fc573d6df8f5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/7dbcaa7c22297fe1b303/snippet.py | 2378306d1ede8dd7979bb02a73d1b3106a44283a | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 4,969 | py | #!/usr/bin/env python
"""
Pandoc filter to parse CriticMarkup into Spans for
Insertion and Deletion. The Docx writer will convert
these into Tracked Changes.
A comment immediately after a change will be parsed
for "author: The Author" and "date: 12-21-12", which
will be inserted into the Span as appropriate.
"""
fr... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
4f388037513dc7157edd78c95a929b1b7d5c1ed8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/6/usersdata/131/2399/submittedfiles/investimento.py | b734cf524df522049516f8e80f2ef98958d66a91 | [] | 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 | 774 | py | # -*- coding: utf-8 -*-
from __future__ import division
#COMECE SEU CODIGO AQUI
#ENTRADA
a=input ('digite seu saldo 2016: ')
#proscessamento
b = float(a*0.045 + a)
c = float(b*0.045 + b)
d = float(c*0.045 + c)
e = float(d*0.045 + d)
f = float(e*0.045 + e)
g = flaot(f*0.045 + f)
h = float(g*0.045 + g)
i = f... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3c327c89f0de7bec82025164c968faf2df12d343 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4191/codes/1716_2497.py | 08cd8e7141262da535ce7f98751d1c4b82b7ce4d | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Instituto de Computacao - UFAM
# Lab 04 - Ex 04
# 20 / 06 / 2016
qi = float(input("Quantia inicial: "))
tempo = int(input("Tempo de investimento: "))
juros = 4.0
saldo = qi # Variavel acumuladora
# Valor inicial da variavel contadora
t = 0
rend=0
# Atualizacao de saldo
while(t<tempo):
rend = saldo * (juros/10... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e9e6b193ada49c07eeba439047839ed6c513a166 | 7a31597f1359be11d2cc05d8107963f3dbe9e204 | /Image_recognition/utils/model_dict.py | c4a7e7c37d00cc8aae670e50e091d41bc1d6d1b9 | [] | no_license | LIMr1209/machine-learn | 9aac2b51a928a864ac3cf82368b3fe9694644cb2 | 56453dce6ae8ba5e7298dab99d5e6a6d114e4860 | refs/heads/master | 2022-07-12T14:17:07.536535 | 2021-12-20T06:57:54 | 2021-12-20T06:57:54 | 163,064,915 | 5 | 2 | null | 2020-08-31T03:09:10 | 2018-12-25T08:48:00 | Python | UTF-8 | Python | false | false | 252 | py | import torch as t
def save_oplaus():
state_dict = {}
checkpoint = t.load('../checkpoint/EfficientNet.pth.tar')
state_dict['state_dict'] = checkpoint['state_dict']
t.save(state_dict, '/opt/checkpoint/EfficientNet.pth')
save_oplaus()
| [
"aaa1058169464@126.com"
] | aaa1058169464@126.com |
c5023ecc348a5f6d754ae717b924597515d9e466 | c24fa89450cccb48fcd481c3cfa475ee0e412e09 | /PythonTools/accToMatAcc.py | 9b41f081bd69b214a00fd824ead8d6cca2702378 | [] | no_license | PhoenixYanrongLi/CareEcoSystem_ServerCodeNew | e95d1c552cdcc70aac09482dfda63e253e01fcb0 | b627484694863c425483a04391eedc2ec2ec1098 | refs/heads/master | 2021-01-01T04:34:51.858543 | 2016-04-14T17:57:30 | 2016-04-14T17:57:30 | 56,258,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | __author__ = 'Brad'
import csv
import datetime
import scipy.io
import numpy
def writeFile(filename):
writeDict={}
f=open(filename,'r')
timeAr=[]
accAr=[]
with open(filename, 'r') as f:
reader = csv.reader(f, delimiter=" ")
for time, x, y, z, azimuth, pitch, roll in reader:
... | [
"phl_416cat@sjtu.edu.cn"
] | phl_416cat@sjtu.edu.cn |
d81d21379e5af810c27b2b1d3e4c8f32d8faec6d | 9d454ae0d5dd1d7e96e904ced80ca502019bb659 | /198_rob.py | 9c17186c04b2ad05f74577de361aeef0ece28d64 | [] | no_license | zzz686970/leetcode-2018 | dad2c3db3b6360662a90ea709e58d7facec5c797 | 16e4343922041929bc3021e152093425066620bb | refs/heads/master | 2021-08-18T08:11:10.153394 | 2021-07-22T15:58:52 | 2021-07-22T15:58:52 | 135,581,395 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | def rob(nums):
## too naive
# return max(sum(nums[0::2]), sum(nums[1::2]), sum(nums[0::3], sum(nums[1::3])))
l =r=0
for n in nums:
l, r = r, max(n+l, r)
return r
assert 4 == rob([2,1,1,2]) | [
"1564256031@qq.com"
] | 1564256031@qq.com |
1eb4ea943bb10ccda036a8f2bbafcef91c5855ed | efd6a277c2d5bffdfba6ccb4d5efd555e652d29e | /chap2/2.12.py | f427f3f0b66eeba917d8798655d76ae107eb82bf | [] | no_license | CavalcanteLucas/cookbook | dd57583c8b5271879bb086783c12795d1c0a7ee8 | 09ac71e291571e3add8d23d79b1684b356702a40 | refs/heads/master | 2020-03-25T03:09:39.608599 | 2019-09-13T04:43:23 | 2019-09-13T04:43:23 | 143,325,952 | 0 | 0 | null | 2020-09-25T05:46:30 | 2018-08-02T17:32:08 | Python | UTF-8 | Python | false | false | 885 | py | # Sanitizing and Cleaning Up Text
s = 'pýtĥöñ\fis\tawesome\r\n'
s
remap = {
ord('\t') : ' ',
ord('\f') : ' ',
ord('\r') : None # Deleted
}
a = s.translate(remap)
a
import unicodedata
import sys
sys.maxunicode
cmb_chrs = dict.fromkeys(c for c in range(sys.maxunicode) if unicodedata.combining(chr(c)))... | [
"thesupervisar@gmail.com"
] | thesupervisar@gmail.com |
435ce25fccf4bd20dbf5ae423dd02ada727c70e2 | b07ea8c5a075e3c7e7a0f9aca6bec73a22cdb7df | /PART 1/ch03/10_is_anagram_using_ord.py | 469076cacf26d0facbbfc5e8a9ede66cabd8f11c | [] | no_license | jaeehooon/data_structure_and_algorithm_python | bb721bdbcff1804c04b944b4a01ed6be93124462 | 6d07438bfaaa1ec5283cb350ef4904eb94826c48 | refs/heads/master | 2023-02-21T10:08:20.765399 | 2021-01-22T13:37:11 | 2021-01-22T13:37:11 | 323,367,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # 3.4.2 애너그램 (2)
"""
ord() 함수는 인수가 유니코드 객체일 때, 문자의 유니코드를 나타내는 정수를 반환
인수가 8바이트 문자열인 경우 바이트 값을 반환함
문자열에서 모든 문자의 ord() 함수 결과를 더했을 때 그 결과가 같으면 두 문자열은 애너그램
"""
import string
def hash_func(astring):
"""
:param astring:
:return:
"""
s = 0
for one in astring:
if one in string.whitespace:
... | [
"qlenfr0922@gmail.com"
] | qlenfr0922@gmail.com |
abec0a4a92dc068a00f9f27d0c21709406b6641f | e47b87905872d92458512b0eda435f53f90b19cf | /movies/migrations/0003_alter_movie_author.py | f15bf19bee735f007ed42db65755c2622c2f495c | [] | no_license | ephremworkeye/drf_demo | e08e2f2049b427497bad815e51247e27784b1f29 | 9f5ce84edd7841fd0456107d99485d2af44e1c49 | refs/heads/master | 2023-07-31T16:24:12.400218 | 2021-09-25T05:56:05 | 2021-09-25T05:56:05 | 409,107,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Generated by Django 3.2.7 on 2021-09-23 00:36
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),
('movies', '0002_alter_mov... | [
"ephremworkeye@gmail.com"
] | ephremworkeye@gmail.com |
9ff318e046b87d76579e6d5b06d8f22e909203d4 | 1b596568ef6ced06173e60c71f01141682329ac4 | /version-example | 0c6ba046e0d538c2d3d1a402526ebec6ad7fb3c5 | [] | no_license | pfuntner/gists | 4eb1847ef22d3d9cb1e17e870a8434c376c4dbfc | 3322c922bd43480b4cc2759b1c31e5c76668c7ef | refs/heads/master | 2020-04-17T08:40:29.444378 | 2019-01-18T16:23:49 | 2019-01-18T16:23:49 | 166,421,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | #! /usr/bin/env python
import os
import re
import sys
import logging
import argparse
import datetime
import subprocess
def run(cmd):
(rc, stdout, stderr) = (None, '', '')
if isinstance(cmd, basestring):
cmd = cmd.split()
try:
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
ex... | [
"jpfuntne@cisco.com"
] | jpfuntne@cisco.com | |
d944222d39aa2c0f4eb6c53856e08e6f051fae7a | df541a802b2dfa89d3aab14af627358dc7c76e6e | /接口自动化/Frame5/httpUnittest.py | 21a2012f8446211b06c3e9b5b336e248861a73a5 | [] | no_license | gupan2018/PyAutomation | de966aff91f750c7207c9d3f3dfb488698492342 | 230aebe3eca5799c621673afb647d35a175c74f1 | refs/heads/master | 2021-09-07T19:44:20.710574 | 2017-12-22T15:58:23 | 2017-12-22T15:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | __author__ = 'Administrator'
import unittest
import mysql.connector
class Http_Unittest(unittest.TestCase):
def __init__(self, test_case_id, test_method, http_method, http, test_url, test_data, cousor):
super(Http_Unittest,self).__init__(test_method)
self.test_case_id = test_case_id
self.te... | [
"610077670@qq.com"
] | 610077670@qq.com |
518bc4aa64f4e5aac711a4ed163b4a5f8f2a09f8 | 0cf269af0e6f8266c26b3bc68e57368e8c3d9edb | /src/outpost/django/thesis/migrations/0002_discipline_doctoralschool_thesis.py | 4dd83c63267a93ce7139bdb7ee8f8290691ea608 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | medunigraz/outpost.django.thesis | c1518aa516d2177b0cacf381432bcdde41f2b5e1 | 1f0dbaa6edb6d91216d9bd97c79ee8b3bbc153cc | refs/heads/master | 2021-09-25T16:47:59.469921 | 2020-08-04T19:16:07 | 2020-08-04T19:16:07 | 184,580,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-08 09:47
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [("thesis", "0001_initial")]
operations ... | [
"michael@fladi.at"
] | michael@fladi.at |
0b697bf8ee814996d74fb061231aeabb70a184c9 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/compute/ssl_policies/describe.py | 0546d3f6604bd3a747040e4520dae448783faf92 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 2,150 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google 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.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
065afde0ad990602c145f176bbbaf950115db7e7 | 4d03e487b60afc85d1f3372fe43f2a7b081f0e41 | /file_list/thumbnail_cache.py | 88b1134b24f906a6286c8193055960e31d5d945b | [] | no_license | hal1932/Explorer | d051bd0bb09b0952bad35deeeec0d4ad00947666 | 869ce3323aee499048f98f33910fc05126947942 | refs/heads/master | 2021-01-19T13:27:22.485124 | 2017-04-18T14:03:17 | 2017-04-18T14:03:17 | 82,392,096 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | # encoding: utf-8
from lib import *
import cv2
import os
import threading
import Queue
class ThumbnailCache(QObject):
load_item_async = Signal()
def __init__(self, enable_load_async=False):
super(ThumbnailCache, self).__init__()
self.__items_dic = {}
if enable_load_async:
... | [
"yu.arai.19@gmail.com"
] | yu.arai.19@gmail.com |
a666762fd34411a901f443d2ec06dd10658e150c | e787a46d354e3bf9666cb0d8b0c7d5f8ed0a8169 | /ccdproc/tests/make_mef.py | a871eaab6869b53192f486e57ffb6a99680fc3eb | [] | permissive | astropy/ccdproc | 25270fec41e64e635f7f22bcf340b2dee9ef88ac | 5af6ee5eee16a99591dd9fcbe81735e70c1cc681 | refs/heads/main | 2023-09-01T11:48:06.969582 | 2023-06-08T18:01:43 | 2023-06-08T18:01:43 | 13,384,007 | 81 | 88 | BSD-3-Clause | 2023-06-08T18:01:45 | 2013-10-07T13:05:51 | Python | UTF-8 | Python | false | false | 2,156 | py | import numpy as np
from astropy.utils.misc import NumpyRNGContext
from astropy.io import fits
from astropy.nddata import CCDData
from ccdproc import flat_correct
def make_sample_mef(science_name, flat_name, size=10, dtype='float32'):
"""
Make a multi-extension FITS image with random data
and a MEF flat.... | [
"mattwcraig@gmail.com"
] | mattwcraig@gmail.com |
1433ed9a66cf8f030d0107507d432670a7d51f0f | 58baf0dd6a9aa51ef5a7cf4b0ee74c9cb0d2030f | /tools/testrunner/standard_runner.py | a59fe0839665fe1699fff41e3e9e4b837c952af2 | [
"bzip2-1.0.6",
"BSD-3-Clause",
"SunPro"
] | permissive | eachLee/v8 | cce8d6e620625c97a2e969ee8a52cc5eb77444ce | 1abeb0caa21301f5ace7177711c4f09f2d6447d9 | refs/heads/master | 2021-08-14T08:21:44.549890 | 2017-11-14T20:35:38 | 2017-11-14T23:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,667 | py | #!/usr/bin/env python
#
# Copyright 2017 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from collections import OrderedDict
from os.path import join
import multiprocessing
import os
import random
import shlex
import su... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
c81f32fd9551171eca3f5765147895606e3573ff | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2759/60610/245707.py | 0d1aca295915e41bef3bdf5a5262c94f0f29f52f | [] | 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 | 278 | py | num=input();
for i in range(num):
string=raw_input();
numList=string.split();
count=0
for j in range(int(numList[0]),int(numList[1])+1):
a=int(numList[2]);
b=int(numList[3]);
if (j%a==0) | (j%b==0):
count+=1;
print(count); | [
"1069583789@qq.com"
] | 1069583789@qq.com |
842240a63093b1ea755d9ef1824ad3d6792f4177 | 9e658976a6fdfbe031fc3452c69243dc66359f6a | /pythonExercise/four.py | b4fadd64058df0da705a77f23dd57f2e54e2cff1 | [] | no_license | zyyxydwl/Python-Learning | b2ed0f80121b284e5fb65cc212ccb84a0eb14cb6 | 6a5d36aa8805da647229fa747fa96452638d830e | refs/heads/master | 2018-10-04T23:42:21.076668 | 2018-06-08T03:19:33 | 2018-06-08T03:19:33 | 107,348,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#@Time :2017/12/2 9:57
#@Author :zhouyuyao
#@File :four.py
# 题目:输入某年某月某日,判断这一天是这一年的第几天?
# 程序分析:以3月5日为例,应该先把前两个月的加起来,然后再加上5天即本年的第几天,特殊情况,闰年且输入月份大于2时需考虑多加一天:
# 程序源代码:
# 实例(题目:输入某年某月某日,判断这一天是这一年的第几天?
# 程序分析:以3月5日为例,应该先把前两个月的加起来,然后再加上5天即本年的第几天,特殊情况,闰年且输入月份大于2时需考虑多加... | [
"1330101907@qq.com"
] | 1330101907@qq.com |
5215a084044fb39cce1d96120767a0cf0684d3fe | 72fd9d49d89a9fc23ca896154fa54cba836c41ca | /tasks.py | 0ea3f55768a7233a886cb6707e616c923561b8c6 | [
"MIT"
] | permissive | envobe/pydash | 15066046fbc07458c29b6b33b1489aaadda5d074 | 6c0f778f6a2535397706aab68636485702ff3565 | refs/heads/master | 2023-01-05T18:14:09.923169 | 2020-10-29T02:16:34 | 2020-10-29T02:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | """
This module provides the CLI interface for invoke tasks.
All tasks can be executed from this file's directory using:
$ inv <task>
Where <task> is a function defined below with the @task decorator.
"""
from __future__ import print_function
from functools import partial
from invoke import Exit, UnexpectedEx... | [
"dgilland@gmail.com"
] | dgilland@gmail.com |
979286ffb46a102ab49df74f8383e498329ab818 | e5eec1428da1d24d3e9b86f5723c51cd2ca636cd | /dynamic_programming/백준/가장큰정사각형_백준.py | 4db92f7d4eee1a5199ea97cc10a52e85fa483fca | [] | no_license | jamwomsoo/Algorithm_prac | 3c36c381f59277721517d331a8f1640399d80c1d | 8393f3cc2f950214c47f3cf0b2c1271791f115d0 | refs/heads/master | 2023-06-09T06:49:14.739255 | 2021-06-18T06:41:01 | 2021-06-18T06:41:01 | 325,227,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # 백준 DP 난이도 골드 5
# 전형적인 dp문제
# dp[i][j]는 위, 왼쪽, 대각선 위 중 작은 것중에 하나를 자신과 더한 값
# -> 정사각형이라면 변의 길이가 모두 같아야하므로
# 1 1 1 1 1 1
# 1 1 1 -> 1 2 2
# 1 1 1 1 2 3
n, m = map(int, input().split())
arr = []
dp = [[0]*(m+1) for _ in range(n+1)]
for i in range(n):
arr.append(list(map(int, input())))
for j in range(m):... | [
"41579282+jamwomsoo@users.noreply.github.com"
] | 41579282+jamwomsoo@users.noreply.github.com |
c5c561e0a70c1027a7c149cd7ffb4e4f5bb38d0f | 9a9f31265c65bec0060271cd337580e7b4f3a7e9 | /project/pokupka.py | 81819a11dce3c4e08f65498d21c98238d72d5f98 | [] | no_license | AnatolyDomrachev/1kurs | efaabde4852172b61d3584237611fe19b9faa462 | 84ed0dceb670ec64c958bf1901636a02baf8f533 | refs/heads/master | 2023-02-19T21:42:53.286190 | 2021-01-19T07:41:15 | 2021-01-19T07:41:15 | 292,637,199 | 0 | 1 | null | 2020-09-16T02:29:14 | 2020-09-03T17:32:29 | Python | UTF-8 | Python | false | false | 586 | py | import magazin
import etc
magazin = magazin.Magazin('magazin.conf')
korzina = []
net_v_magazine = []
def pokupka(spisok):
for slovar in spisok:
est_v_mag = 'No'
for tovar in magazin.tovary:
if slovar['name'] == tovar['name']:
kupil = etc.beru(slovar, tovar)... | [
"you@example.com"
] | you@example.com |
070d2ffacad8dbdcc16c98b9921ba3c9c2b5c0ca | 3a21eac318260972a0f50aa6517bebd62d9634f3 | /minimarket/settings.py | a6e40467c5437d3caa279c03850dc038c10d6db9 | [] | no_license | alviandk/ahp | adaf735c2ad14cfffee41eca37df5ff2452e8812 | 60764c12bb30cd134bbce53d62cda835503191d2 | refs/heads/master | 2016-09-05T19:16:02.907235 | 2015-03-27T09:42:43 | 2015-03-27T09:42:43 | 32,963,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | """
Django settings for minimarket project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)... | [
"alviandk@gmail.com"
] | alviandk@gmail.com |
3d5664d5e503269e5557e6b98623f3cb0c80edbc | e211000d0d843fd944266892f49a7649c7e8918d | /abc/065/python/code_c.py | fc52911095e41bda42258728f4b59ac2a5a9d1b0 | [] | no_license | habroptilus/atcoder-src | 63dfa16c6d4b80d1e36618377d3201888183281f | 4cd54202037996b3f4a4442b1bd19d42d8a46db1 | refs/heads/master | 2020-04-26T07:14:38.322156 | 2019-06-08T14:44:26 | 2019-06-08T14:44:26 | 173,388,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import math
N, M = map(int, input().split())
if abs(N - M) == 1:
print(math.factorial(N) * math.factorial(M) % (10**9 + 7))
elif N == M:
print(math.factorial(N) * math.factorial(M) * 2 % (10**9 + 7))
else:
print(0)
| [
"x7deed53bc9k8@softbank.ne.jp"
] | x7deed53bc9k8@softbank.ne.jp |
84e8e2a34adc392dbabc3541f6defc2c829bdb23 | a40f749cb8e876f49890ab8fbbbbf2c07a0dd210 | /examples/ad_manager/v201902/adjustment_service/update_traffic_adjustments.py | 60a54bd299660da60a8ece16a64cfb2643030b0a | [
"Apache-2.0"
] | permissive | ale180192/googleads-python-lib | 77afff4c352ac3f342fc8b3922ec08873d6da5be | 783a2d40a49956fb16ed73280708f6f9e322aa09 | refs/heads/master | 2020-08-10T15:20:06.051974 | 2019-10-11T07:06:58 | 2019-10-11T07:06:58 | 214,367,074 | 0 | 0 | Apache-2.0 | 2019-10-11T07:04:21 | 2019-10-11T07:04:20 | null | UTF-8 | Python | false | false | 3,009 | py | #!/usr/bin/env python
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"davidwihl@users.noreply.github.com"
] | davidwihl@users.noreply.github.com |
866b56f8009fd7f8a034eff87f37008c86df78d1 | c79bc3b25aac5f958da011119bf71fcca534bd1a | /hostedpi/cli.py | 9b5ae581de90ba5a42336748f8ef5c6dfe1b4a90 | [
"BSD-3-Clause"
] | permissive | gnuchu/hostedpi | c4ff4d398bcc8fde0d2d421f8a67b315c40fcc33 | 325e8035e0bf671daeabb4d696eb5b36a6daa12d | refs/heads/main | 2023-03-31T04:07:17.604847 | 2021-03-28T00:10:22 | 2021-03-28T00:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,699 | py | import os
import sys
import argparse
from .picloud import PiCloud
from .utils import read_ssh_key, ssh_import_id
from .exc import HostedPiException
from .__version__ import __version__
class CLI:
def __init__(self):
self._args = None
self._commands = None
self._config = None
self.... | [
"ben@bennuttall.com"
] | ben@bennuttall.com |
132158a21c498725862cc23ae626f36d7f28db28 | 0c41f2fd4c1ad9b954097b0662e556b3eb288987 | /cellbender/remove_background/data/priors.py | 3989769165ab538647ccca8e672a97fca80bd06d | [] | permissive | broadinstitute/CellBender | e884a5520fc3e0fc2f422f8cd6dcdc6c594b5094 | 4990df713f296256577c92cab3314daeeca0f3d7 | refs/heads/master | 2023-08-21T14:55:33.619290 | 2023-08-08T18:40:14 | 2023-08-08T18:40:14 | 171,951,233 | 207 | 40 | BSD-3-Clause | 2023-08-30T05:27:18 | 2019-02-21T21:53:57 | Python | UTF-8 | Python | false | false | 15,821 | py | """Functionality for estimating various priors from the data"""
import numpy as np
import torch
from scipy.stats import gaussian_kde
from cellbender.remove_background import consts
from typing import Dict, Tuple, Union
import logging
logger = logging.getLogger('cellbender')
def _threshold_otsu(umi_counts: np.nda... | [
"noreply@github.com"
] | broadinstitute.noreply@github.com |
2ffdda96a873aba49978b503a61bf9f7d102c380 | aabe7008e0eb77617f1a76cddb98e4b17fd5ce27 | /nni/algorithms/compression/v2/pytorch/base/pruner.py | 730b9c749493d56b5adb0b6fab1fccd139408f77 | [
"MIT"
] | permissive | penghouwen/nni | a09a374a81be46fe246c425275585d5fe79404af | 2e6a2fd2df0d5700cb028b25156bb535a3fc227a | refs/heads/master | 2021-12-21T14:02:32.228973 | 2021-12-13T16:54:39 | 2021-12-13T16:54:39 | 435,926,123 | 1 | 0 | MIT | 2021-12-07T15:09:36 | 2021-12-07T15:09:35 | null | UTF-8 | Python | false | false | 6,529 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import logging
from typing import Dict, List, Optional, Tuple
import torch
from torch import Tensor
from torch.nn import Module
from .compressor import Compressor, LayerInfo
_logger = logging.getLogger(__name__)
__all__ = ['Pruner']
class P... | [
"noreply@github.com"
] | penghouwen.noreply@github.com |
55303a17c04c8a0efbd951d112b3225f0d9cb8b7 | 48983b88ebd7a81bfeba7abd6f45d6462adc0385 | /MOG/50.py | 4f0d7d569452389c938806754ec6d5d1f0269de2 | [] | no_license | lozdan/oj | c6366f450bb6fed5afbaa5573c7091adffb4fa4f | 79007879c5a3976da1e4713947312508adef2e89 | refs/heads/master | 2018-09-24T01:29:49.447076 | 2018-06-19T14:33:37 | 2018-06-19T14:33:37 | 109,335,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # author: Daniel Lozano
# source: MatcomOnlineGrader (MOG) ( http://matcomgrader.com )
# problem name: El Numero Decodificado
# problem url: http://matcomgrader.com/problem/50/el-numero-decodificado/
n = int(input())
count = 1
def digits_sum(num):
add = 0
while num != 0:
add += num % 10
num ... | [
"lozanodaniel02@gmail.com"
] | lozanodaniel02@gmail.com |
08842649a48eb36c8cf0554d9be65a5eb137f4a6 | 006ff11fd8cfd5406c6f4318f1bafa1542095f2a | /CondTools/L1Trigger/test/L1ConfigWriteRSOnline_cfg.py | 64fa0d8ce4623c21378f8483b5e825899465cb4e | [] | permissive | amkalsi/cmssw | 8ac5f481c7d7263741b5015381473811c59ac3b1 | ad0f69098dfbe449ca0570fbcf6fcebd6acc1154 | refs/heads/CMSSW_7_4_X | 2021-01-19T16:18:22.857382 | 2016-08-09T16:40:50 | 2016-08-09T16:40:50 | 262,608,661 | 0 | 0 | Apache-2.0 | 2020-05-09T16:10:07 | 2020-05-09T16:10:07 | null | UTF-8 | Python | false | false | 8,202 | py | # This script doesn't work yet. PoolDBESSource does not see the IOV updates made earlier in the
# same event.
import FWCore.ParameterSet.Config as cms
process = cms.Process("L1ConfigWriteRSOnline")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cout.placeholder = cms.untracked.bool(Fals... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
5399e23352d99fa49189fb77253df88e8639566e | eb82022c0cfc7c8747661cff9624ad2099fa1c3f | /dev_accounting_report/report/sales_delivery_out_rekap_xls.py | 195552276cf5b3294ff059aa939ef9c184ff83a4 | [] | no_license | dadysuarsa/Odoo | 8d026a066c390cc8f72805d2672212e61260c1cb | c9becd0c192fa239520ad3e1a11d81f70832eddf | refs/heads/master | 2023-03-11T06:02:06.011575 | 2021-02-26T02:17:37 | 2021-02-26T02:17:37 | 276,346,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,299 | py | import time
import xlwt, operator
from odoo.report import report_sxw
from report_engine_xls import report_xls
from odoo.tools.translate import _
from datetime import datetime
import pytz
class ReportStatus(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context=None):
super(ReportStatus, self).__i... | [
"dads02_zetti@yahoo.com"
] | dads02_zetti@yahoo.com |
71240c639014721fc67dd2c7ff9f05d6c32de443 | 095a1c126ffaf703d923431ce5279a0dac384740 | /timecard/views/auth_views.py | f01ca3273a967bcb926fb3d487993405f8ebdcb9 | [] | no_license | patpio/timecard | 8bc5c6dbfc3877157dc8bfca7f9f5debd1e7b486 | f4a2f2db69410a2b98d9815fbac5048ba8c47126 | refs/heads/master | 2023-03-22T15:51:06.658738 | 2021-01-12T22:42:44 | 2021-01-12T22:42:44 | 321,773,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | from flask import Blueprint, render_template, url_for, flash, request, abort
from flask_login import login_user, logout_user, login_required, current_user
from werkzeug.utils import redirect
from timecard import db
from ..models import User
from ..forms import SignUpForm, LoginForm
bp_auth = Blueprint('auth', __name_... | [
"pat_pi@yahoo.com"
] | pat_pi@yahoo.com |
9f64b6fde8ce5918644f9e426104b18db422e7c5 | f881c10e0d654da82218403dbd2adbdc606dc455 | /apps/user_login/models.py | 96fff17dd9d564cfa7fed5ca4f762658b6b74462 | [] | no_license | alialwahish/restfull_users | 1732dceeddf4367d678ff6cdf2668dbc95463182 | 24d00811b2b46b33e5cf5c311367bd153344dc70 | refs/heads/master | 2020-03-17T15:37:13.562082 | 2018-05-16T20:05:21 | 2018-05-16T20:05:21 | 133,717,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from __future__ import unicode_literals
from django.db import models
class dojo(models.Model):
name=models.CharField(max_length=255)
city=models.CharField(max_length=255)
state=models.CharField(max_length=2)
class ninjas(models.Model):
first_name=models.CharField(max_length=255)
last_name=models.C... | [
"bayati.ali@icloud.com"
] | bayati.ali@icloud.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.