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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60016e02566b22722c3290ab83e45f138859db6d | d4a78a9099884c1e1c203f7e5b78b844de053ff7 | /tensorflow/tools/compatibility/reorders_v2.py | 3f05aea6cadeaf75ab57d43fe56d4a2d01b9ed3b | [
"Apache-2.0"
] | permissive | pint1022/tensorflow | b4b7632c0f833135a0bb37ab5a939a6c1ec51ef6 | ab1f872bbcf7749112f76a7f9ba17406e8fbbf4e | refs/heads/master | 2020-04-15T00:16:48.132100 | 2019-02-05T17:48:11 | 2019-02-05T17:48:11 | 164,233,910 | 2 | 2 | Apache-2.0 | 2019-01-05T16:53:25 | 2019-01-05T16:53:25 | null | UTF-8 | Python | false | false | 8,953 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e478a8dd22f338846584b48de48cc352e36990e4 | a574d0c0ebc8e17eb641777f93544c0ae43850c9 | /final_problem_set/3_blackjack.py | 0cf5d30adb0ea1093e5eedc11666ee8dcdb2ceff | [] | no_license | broepke/GTx | 1e33c97d0f86e95124ceb5f0436f965154822466 | e12143c9b1fc93d4489eb0f6c093637503139bf6 | refs/heads/master | 2020-04-08T09:35:41.884572 | 2020-01-03T03:37:34 | 2020-01-03T03:37:34 | 159,230,824 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,883 | py | # -----------------------------------------------------------
# In this problem, we're going to explore a little of how
# game AI works. We'll do this with a simple problem: building
# an agent to play the popular card game Blackjack.
#
# Blackjack is a card game played with a standard 52-card
# deck. Suits do not matt... | [
"broepke@gmail.com"
] | broepke@gmail.com |
b0c462aa3ac6c9a36bdd6a3d58d5bea208e8680a | 47dd9eadf5d2c7421eeb0c39d1ff0bad440ac513 | /handprint/__version__.py | f6beec44457f0f8b28ee2024b1f5b6b6faa9147e | [
"CC-BY-3.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JanaldoChen/handprint | 53a26f9195e96f1a649dc2c026c85f85d66ce28e | 0bc155b65d222fae8e753f75394a6f203d37e47a | refs/heads/master | 2020-05-02T10:09:46.746419 | 2018-12-22T01:48:09 | 2018-12-22T01:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # =============================================================================
# @file __version__.py
# @brief handprint version info
# @author Michael Hucka <mhucka@caltech.edu>
# @license Please see the file named LICENSE in the project directory
# @website https://github.com/caltechlibrary/handprint
# =======... | [
"mhucka@caltech.edu"
] | mhucka@caltech.edu |
970f9a3a0c4bb549735c394ed87a95815931f452 | f29336e5442d59961e22f925b3e6ee96ed3bf0ca | /src/mnemotopy/middleware/locale.py | 8f090b2d5fe154c0ff33927932ce488927e364f7 | [] | no_license | louiseGrandjonc/mnemotopy | be00b304924689ecd1cfd714da8416aaac55466c | 7744745a7fcba7b5721577ce18c654df48aaa1ba | refs/heads/master | 2022-12-10T07:32:47.100612 | 2020-01-02T10:01:03 | 2020-01-02T10:01:03 | 84,743,189 | 1 | 1 | null | 2022-12-08T03:22:03 | 2017-03-12T17:18:10 | JavaScript | UTF-8 | Python | false | false | 2,327 | py | from django.conf import settings
from django.conf.urls.i18n import is_language_prefix_patterns_used
from django.http import HttpResponseRedirect
from django.urls import get_script_prefix, is_valid_path
from django.utils import translation
from django.utils.cache import patch_vary_headers
from django.middleware.locale i... | [
"louve.grandjonc@gmail.com"
] | louve.grandjonc@gmail.com |
5ffb6b6dd9d960be90008d1703cfd4f5baa5923c | 915c31ce84a826d225bcb1cc5f1e0323e712f6e4 | /phase_1.py | 23d9a60800f43eabfa859f9270499bce8902d0f7 | [
"Apache-2.0"
] | permissive | mac389/overdosed | 64162aaf8f57f7ca57bcc95678d0d18e231cda87 | 434255db4ea36581c9f94c7aa09ca6ca15169e8a | refs/heads/master | 2021-01-10T07:44:41.804936 | 2015-06-25T23:22:51 | 2015-06-25T23:22:51 | 36,990,551 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | import os, gzip, json,tokenize,token
import nltk, csv
from nltk.corpus import stopwords
import utils as tech
import matplotlib.pyplot as plt
from pprint import pprint
#Rule-in component
CONTROL = os.path.join(os.getcwd(),'data','control')
CASE = os.path.join(os.getcwd(),'data','case')
corpus = {'case':CASE}
text ... | [
"mac389@gmail.com"
] | mac389@gmail.com |
1e543f53fd9bfe1768f6b104c50eb5b05ea71eaf | be1907ef4b4eb56567d8df5703a98a7a6a34c88a | /modules/bsg/bsg_encoder.py | 75081a8fa6698841440e75fcde77b8df308846f4 | [] | no_license | griff4692/LMC | f9bd4803c5b37bbae98cbe5014a719d3c9ea7a2f | f07dfa472d3f6bfd7ce7f7ac7168687beb8efdaf | refs/heads/master | 2023-01-30T00:37:53.505757 | 2020-12-08T17:35:48 | 2020-12-08T17:35:48 | 223,016,633 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | import os
import sys
import torch
from torch import nn
import torch.utils.data
home_dir = os.path.expanduser('~/LMC/')
sys.path.insert(0, os.path.join(home_dir, 'utils'))
from compute_utils import compute_att
class BSGEncoder(nn.Module):
"""
BSG Encoder as described in original BSG paper. It accepts a cent... | [
"griff4692@gmail.com"
] | griff4692@gmail.com |
2eaf99a83d401d021b7fd901f0ccfb97a268d4f6 | 6f9a5717fed38b0a79c399f7e5da55c6a461de6d | /Templates/RelativeCoord.py | 850330f5311780fa1954f91eb4ca1b86c6726a15 | [] | no_license | Alfred-Walker/pythonps | d4d3b0f7fe93c138d02651e05ca5165825676a5e | 81ef8c712c36aa83d1c53aa50886eb845378d035 | refs/heads/master | 2022-04-16T21:34:39.316565 | 2020-04-10T07:50:46 | 2020-04-10T07:50:46 | 254,570,527 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | # 상하좌우 네칸
dx = [-1, 0, 1, 0]
dy = [0, -1, 0, 1] | [
"studio.alfred.walker@gmail.com"
] | studio.alfred.walker@gmail.com |
c56aaf008716622e25169ac587aa548837eeda2e | 3e5cc67b0c8336114110d1558d481a3ff5d0eb3c | /apps/h5/views.py | f565ab6e6efb0570e5fea943a59e3da852b45b65 | [] | no_license | xiaoxiaolulu/mtserver | 32b46488705bc2c962d60c288c482f81dca0a2b0 | 912222bbf1cd7c9bd242e96062570073b6544f6a | refs/heads/master | 2021-02-22T07:42:57.579124 | 2020-03-10T17:50:28 | 2020-03-10T17:50:28 | 245,372,121 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | import random
from rest_framework import views
from django.contrib.auth import get_user_model
from apps.h5.serializers import LoginSerializer
from apps.h5.throttles import SMSCodeRateThrottle
from apps.meituan.models import Merchant
from apps.meituan.serializers import MerchantSerializer
from apps.mtauth.authentication... | [
"546464268@qq.com"
] | 546464268@qq.com |
d23e8296c9d073516f7dfbbf011c50abf54fda86 | 97f861630898e1aa38dd6f08f351640688b3c17f | /tensorflow/python/ops/metrics.py | 04cd4ecbd4095391abec2422add886a0a9c469f3 | [
"Apache-2.0"
] | permissive | alexerwu/tensorflow | 31e33020fcfd4cd405a2f4c4ddbad0839352935b | 95195bd0ef742f2876a1694ebb4c018f858af062 | refs/heads/master | 2021-01-12T08:28:27.693374 | 2016-12-15T17:34:54 | 2016-12-15T17:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111,386 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
06d1da03bb473ec8c74994de7dded0aac1d089af | bc1e4bdfe4c759cb8fc39dfb2181bbcf79a2c5a5 | /React-Tasks/dj/lib/python3.6/weakref.py | 08e07af5cee91eb3751018654b88c40612e44099 | [] | no_license | ProgMmgGhoneim/React_Js | 19b4f2eef617c1a9623ef93297b2a3c7c84769c6 | d038ac7fbc60757a04d777ffe1b6dc1cfcdfaea7 | refs/heads/master | 2023-01-10T20:23:03.466801 | 2019-10-11T11:25:56 | 2019-10-11T11:25:56 | 214,394,220 | 0 | 0 | null | 2023-01-05T23:20:36 | 2019-10-11T09:16:05 | Python | UTF-8 | Python | false | false | 48 | py | /home/ghoneim/anaconda3/lib/python3.6/weakref.py | [
"progmmgghoneim@gmail.com"
] | progmmgghoneim@gmail.com |
5d2eb91da355a9b16280bef5d63c1395eae24179 | f421d6ae91120184a7ce1b82e779255fd64fdf85 | /structs/models/conv.py | b8a0b86846e3b9280b45ce61e3af9572f72dbada | [] | no_license | landjbs/MCTS | 54f8a979878ad3ca895e6ff151bd3c872e96859c | db6f490cb3c27b6ffc31b48350ce63c68b59315b | refs/heads/master | 2020-11-27T05:23:09.726422 | 2019-12-27T19:44:01 | 2019-12-27T19:44:01 | 229,320,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | import torch
import torch.nn as nn
class Conv(nn.Module):
'''
The Conv model is tasked with prediciting a vector (p) of move probabilities
across the avaliable moves and a scalar (v) of win probability at the
current state. To avoid shape issues, p always has length 8. Input board
is a 4th order t... | [
"landjbs@gmail.com"
] | landjbs@gmail.com |
95a32e6f81e5d22d9e2310154eb8ea8d02f8449a | 805705b87e889c18ac0b8be6ee50fcc292bf32e1 | /main.py | 7d5e45fd1fab3b9071debd0070268a77e592ef62 | [] | no_license | jaybenaim/day18-reinforcements | 283ea6578cb4dbc252da6b30e77a2899b6feac03 | e29ae6f1b16ea8c0b5d4fd1eba931799c0a70c57 | refs/heads/master | 2020-06-24T07:16:45.253006 | 2019-07-25T20:32:52 | 2019-07-25T20:32:52 | 198,893,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | def word_counter(string):
word_list = []
for words in string:
each_word = string.split()
if words == None:
return 0
else:
for word in each_word:
word_list.append(word)
return len(word_list)
print(word_count... | [
"benaimjacob@gmail.com"
] | benaimjacob@gmail.com |
f84aaf8671a71a32fd27a410f2fb67fb424f2fd9 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2942/60731/239792.py | be1b184072b692962edd810b9ee96fe99b0afb2a | [] | 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 | 120 | py | n=int(input())
num=input()
l=num.split()
l.sort(reverse=True)
result=''.join(l)
num1=int(result)
print(result,end='')
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
b2524bfa2f3066ef2a19eac93a3434a6ce088a9b | 223b5e108951378f9de33258d2602fc01c17c4cb | /django16/project_name/settings.py | 3e07f544761d6b0d1b95bea8f4090296f58955c3 | [
"MIT"
] | permissive | barscka/django-project-template | 55934fb14f665aae5accd0dfbef23ed7efa0c3ba | 2515d7a4f0964feb8aef2f340db4aa2f820c1d87 | refs/heads/master | 2021-05-31T09:06:17.254535 | 2015-07-28T00:14:10 | 2015-07-28T00:14:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,571 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
Django settings for {{ project_name }} project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
... | [
"allisson@gmail.com"
] | allisson@gmail.com |
4fac3d9ddcb200a86ec0789f848a9079e75c1994 | 0c452a191d35a26499abec71854f8a8cdb1efc68 | /test/unit/backends/msbuild/test_writer.py | 81b41a280bbd23b9d969441b074964552239bd10 | [
"BSD-3-Clause"
] | permissive | luc3001/bfg9000 | fe609d64d7b605fef0ffb375873729c8cf0bd641 | 41452e9dd12f1a44bae68d3bf44f362d283e6802 | refs/heads/master | 2020-09-15T17:10:52.434281 | 2019-11-22T04:33:26 | 2019-11-22T04:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | import mock
from ... import *
from bfg9000.backends.msbuild.writer import version
from bfg9000.versioning import Version
def mock_bad_which(*args, **kwargs):
raise IOError()
def mock_bad_execute(*args, **kwargs):
raise OSError()
class TestMsBuildVersion(TestCase):
def test_good(self):
with m... | [
"itsjimporter@gmail.com"
] | itsjimporter@gmail.com |
64ea2ea9564dcd0bab25d5cf5c5a4115f4769d93 | a81c1492783e7cafcaf7da5f0402d2d283b7ce37 | /google/ads/google_ads/v6/proto/enums/shared_set_status_pb2.py | 6b94727fd3b8dc33bf74d4a95e08d59671258bef | [
"Apache-2.0"
] | permissive | VincentFritzsche/google-ads-python | 6650cf426b34392d1f58fb912cb3fc25b848e766 | 969eff5b6c3cec59d21191fa178cffb6270074c3 | refs/heads/master | 2023-03-19T17:23:26.959021 | 2021-03-18T18:18:38 | 2021-03-18T18:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,087 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v6/enums/shared_set_status.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refle... | [
"noreply@github.com"
] | VincentFritzsche.noreply@github.com |
1522d5404ed627f0931f89bb5684acad594c31df | 493a36f1f8606c7ddce8fc7fe49ce4409faf80be | /.history/B073040023/client_20210614185239.py | 0b152bdb8714864bface6716198073ed81196b44 | [] | no_license | ZhangRRz/computer_network | f7c3b82e62920bc0881dff923895da8ae60fa653 | 077848a2191fdfe2516798829644c32eaeded11e | refs/heads/main | 2023-05-28T02:18:09.902165 | 2021-06-15T06:28:59 | 2021-06-15T06:28:59 | 376,568,344 | 0 | 0 | null | 2021-06-13T14:48:36 | 2021-06-13T14:48:36 | null | UTF-8 | Python | false | false | 5,029 | py | import socket
import threading
import tcppacket
import struct
from time import sleep
# socket.socket() will create a TCP socket (default)
# socket.socket(socket.AF_INET, socket.SOCK_STREAM) to explicitly define a TCP socket
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # explicitly define a UDP socket
udp_h... | [
"tom95011@gmail.com"
] | tom95011@gmail.com |
fbe2b17d459317f2efe8ffe5d2cae5b3c831ec34 | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /suning/api/oto/OrderGetRequest.py | 4a5953e4ea31fa728bfb4e0a68491e4b13475f83 | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
'''
Created on 2016-12-2
@author: suning
'''
from suning.api.abstract import AbstractApi
class OrderGetRequest(AbstractApi):
'''
'''
def __init__(self):
AbstractApi.__init__(self)
self.b2cOrderId = None
self.setParamRule({
'b2cOr... | [
"945090896@qq.com"
] | 945090896@qq.com |
f7054ba24a5ccaf1ec397da00458afa1b156dfc4 | 9184e230f8b212e8f686a466c84ecc89abe375d1 | /arcseventdata/tests/module/events2IQQQE_TestCase.py | 99df9481553bd7ad7dbd5f5d4277ab0a0d79268b | [] | no_license | danse-inelastic/DrChops | 75b793d806e6351dde847f1d92ab6eebb1ef24d2 | 7ba4ce07a5a4645942192b4b81f7afcae505db90 | refs/heads/master | 2022-04-26T17:37:41.666851 | 2015-05-02T23:21:13 | 2015-05-02T23:21:13 | 34,094,584 | 0 | 1 | null | 2020-09-10T01:50:10 | 2015-04-17T03:30:52 | Python | UTF-8 | Python | false | false | 2,272 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
c2184ae39c88d495df7b7e3f616625ec741446de | bde1e989aea152374f37b3511c39954d813016ae | /platypush/plugins/media/webtorrent.py | f496644fdf180552d3233c0f94dd5d409194d471 | [
"MIT"
] | permissive | lopeben/platypush | bad4f3df159582b77577a91bd03246af428073e8 | 6ba92e7fdd40090c5ed70fad3dd961c21f894844 | refs/heads/master | 2022-10-12T12:24:48.789230 | 2020-05-23T21:12:39 | 2020-05-23T21:12:45 | 270,212,467 | 1 | 0 | MIT | 2020-06-07T06:14:53 | 2020-06-07T06:14:52 | null | UTF-8 | Python | false | false | 15,277 | py | import enum
import os
import re
import select
import subprocess
import threading
import time
from platypush.config import Config
from platypush.context import get_bus, get_plugin
from platypush.plugins.media import PlayerState, MediaPlugin
from platypush.message.event.torrent import TorrentDownloadStartEvent, \
To... | [
"blacklight86@gmail.com"
] | blacklight86@gmail.com |
86956855ea6b190a1147fd6a1574cf7b802e2f9a | d6b8c5594c668cd2aa907f79e80ea00f97b82d97 | /lux/openapi/core.py | b2bb9e3338a2e96a216236526b0b6297e14f2503 | [
"BSD-3-Clause"
] | permissive | quantmind/lux | 68d44242cd10a012f32888174d9db801c09b2715 | 7318fcd86c77616aada41d8182a04339680a554c | refs/heads/master | 2021-01-23T11:32:03.180026 | 2018-01-06T09:28:30 | 2018-01-06T09:28:30 | 16,417,125 | 21 | 16 | BSD-3-Clause | 2019-10-22T23:21:37 | 2014-01-31T18:53:55 | Python | UTF-8 | Python | false | false | 10,310 | py | import logging
from collections import OrderedDict
from .utils import compact
METHODS = ['get', 'head', 'post', 'put', 'patch', 'delete', 'trace']
LOGGER = logging.getLogger('lux.rest.openapi')
class OpenAPIError(Exception):
"""Base class for all apispec-related errors."""
pass
class PluginError(OpenAPIE... | [
"luca@quantmind.com"
] | luca@quantmind.com |
9fa8a0e9bb487fcb5ad1e68336225d1649d3661b | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_campaign_feed_type.py | e632ecbca72b678f7a4db97229be13d4f1347343 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 1,017 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.campaignfeed.model.app_info_shadow_type import AppInfoShadowType
from baiduads.campaignfeed.model.app_info_type import AppInfoType
from bai... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
d6bcca1d303319ff1a55c17cac8ab8a370e5a279 | a303be0a547d717b0deb19b5bdcc75010e131b51 | /Contests/Others/ Week of Code/ Week of Code 37 /p5.py | e817e377cb4991fe33d589076be6739cb4fb319f | [] | no_license | harrypotter0/competitive-programming | ff883c4dc5aa8d72f1af589bb654a422e32c8a38 | 82a8497e69212dc62e75af74b0d5a3b390b8aca2 | refs/heads/master | 2023-03-23T07:07:14.295053 | 2021-03-17T01:24:45 | 2021-03-17T01:24:45 | 70,964,689 | 16 | 9 | null | 2021-03-17T01:24:49 | 2016-10-15T03:52:53 | Python | UTF-8 | Python | false | false | 6,684 | py | # /*
# *
# ********************************************************************************************
# * AUTHOR : AKASH KANDPAL *
# * Language : Python2 *
# * Motto : The maste... | [
"9654263057akashkandpal@gmail.com"
] | 9654263057akashkandpal@gmail.com |
a06675d8d7e084e4ae02e553a590be3a8e9ce495 | e206ea09a316757e8028d803616634a4a9a50f72 | /atcoder/abc129/b.py | fbb59bcae9ff0c22019f642b3dc086816f80c85a | [] | no_license | seiichiinoue/procon | 46cdf27ab42079002c4c11b8abe84662775b34a4 | f0b33062a5f31cf0361c7973f4a5e81e8d5a428f | refs/heads/master | 2021-06-26T19:02:24.797354 | 2020-11-01T14:12:54 | 2020-11-01T14:12:54 | 140,285,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | n, w = int(input()), list(map(int, input().split()))
l, r = 0, sum(w)
ans = 10 ** 8
for i in range(len(w)):
l += w[i]
r -= w[i]
tmp = abs(l - r)
if tmp < ans:
ans = tmp
print(ans) | [
"d35inou108@gmail.com"
] | d35inou108@gmail.com |
0401788f6eda4715532dae6556764db985193daa | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/pybites/100DaysOfCode-master/081/test_whotweeted.py | 081e54fb084f4de91e390ed679575664df25c697 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,989 | py | import unittest
from unittest.mock import patch
import tweepy
from whotweeted import get_country_code, who_is_output
from whotweeted import load_cache
DATA = dict(AU='875639674244444160',
ES='875669971954806784',
nopb='846302762736504833',
noloc='844092059988508673',
b... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
1e1f43619e376683aa885790296b265493835bef | 1929443c8e4ec6ccd79777f18d161546867e17ef | /methods/transformers/src/transformers/training_args.py | 294fc20b905f93d58c360df7ba0ed6a6889c2cab | [
"MIT",
"Apache-2.0"
] | permissive | INK-USC/RiddleSense | 6f4b00546d7f4d5ada12db50929c1f0d7713d541 | a3d57eaf084da9cf6b77692c608e2cd2870fbd97 | refs/heads/main | 2023-08-14T19:01:01.478946 | 2021-07-05T04:06:01 | 2021-07-05T04:06:01 | 376,487,870 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 24,012 | py | import dataclasses
import json
import os
import warnings
from dataclasses import dataclass, field
from enum import Enum
from typing import Any, Dict, List, Optional, Tuple
from .file_utils import cached_property, is_torch_available, is_torch_tpu_available, torch_required
from .trainer_utils import EvaluationS... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
fb7e5991c19a66f9ab6e23cb29f7dd6b7855614f | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil3353.py | 660ce9caee9673fe64e6ea34e24751bbdfda931e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | # qubit number=4
# total number=41
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(3) # number=30
prog... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
928689715808bfb8d54dac1bb4fbce927c5ef862 | 4fb5eb0a9a24fa5c112a4ebc854ee2604b04adda | /python/test/test_account_properties.py | 459f9f00474222b10ed1e1fd2aa16ae83ec57295 | [
"MIT"
] | permissive | KoenBal/OANDA_V20_Client | ed4c182076db62ecf7a216c3e3246ae682300e94 | e67b9dbaddff6ed23e355d3ce7f9c9972799c702 | refs/heads/master | 2020-03-27T20:42:25.777471 | 2019-12-02T15:44:06 | 2019-12-02T15:44:06 | 147,088,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | # coding: utf-8
"""
OANDA v20 REST API
The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/perso... | [
"koen.bal@gmail.com"
] | koen.bal@gmail.com |
25e99ed5ed165357611d11826c5c6747f9a2c1c7 | 015a54d9bfdf81184da6f8513d1870a2cbc17224 | /busshaming/conf/dev_settings.py | 99b6a3342cc982e6ef9d087e331d059103510590 | [
"MIT"
] | permissive | katharosada/bus-shaming | 54e4cc4fa36b55faa1da1b6b8a15a390a2f681a6 | c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9 | refs/heads/master | 2021-01-15T22:08:33.290718 | 2018-12-03T08:19:24 | 2018-12-03T08:19:24 | 99,885,413 | 44 | 7 | MIT | 2018-01-29T06:44:45 | 2017-08-10T05:38:22 | Python | UTF-8 | Python | false | false | 1,447 | py | """
Django settings for busshaming project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os... | [
"katie@katharos.id.au"
] | katie@katharos.id.au |
c19cb11d4583210fc5f30bc666a548f7590b7f2d | 1f05211127ded22bad7b947d771578d658f4ef77 | /apostello/templatetags/apostello_extras.py | 1c513fe3ca0769e7b3a0e8f288cbb81540291ced | [
"MIT"
] | permissive | dmccubbing/apostello | 60afa716b756a9619f5a01b690223e7705b98b10 | 859a54e9936097628719680ed3c0a67fe4553947 | refs/heads/master | 2021-01-12T02:38:59.332852 | 2016-12-24T15:10:09 | 2016-12-24T15:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | from django import template
from django.urls import reverse
from django.utils.safestring import mark_safe
register = template.Library()
@register.simple_tag
def fab_button(href, text, icon_name):
"""Output a formatted fab link"""
result = '''
<a class="hvr-backward item" href="{href}">
<i class="large {... | [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
a3f4f5793bcdec480e1194c9dc2ccd3f15a0de41 | 908655251066427f654ee33ebdf804f9f302fcc3 | /Tests/Pedestrian/av_simulator.py | c1fcf61e499b916ebf90939efbc2b8f9ea7c7d17 | [] | no_license | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,541 | py | #import base Simulator class
from mylab.simulators.simulator import Simulator
#Used for math and debugging
import numpy as np
import pdb
#Define the class
class AVSimulator(Simulator):
"""
Class template for a non-interactive simulator.
"""
#Accept parameters for defining the behavior of the system unde... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
218b85febe0584455f176aaf225870a30c0ac84e | 241b3614c8493f0b4432b127b63b2dbc17cdce3e | /Chapter 4/4-3.py | 26f8738f61b41339e144179e435af6c9a1db00cd | [] | no_license | joose1983/answer-for-python-crush-course-2ndE | 6edc5e8909f4374f029ca8ac686ddaf83e331a10 | b773e9cffd69695ecbb004d50c60fa9dbbd4f2ff | refs/heads/master | 2023-01-07T00:42:00.048631 | 2020-11-06T10:12:39 | 2020-11-06T10:12:39 | 293,987,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | numbers=list(range(1,21))
for number in numbers:
print(number)
| [
"jingangqin@gmail.com"
] | jingangqin@gmail.com |
499db621a567d7c9bcdf75cb9232c3c6fbe6ad2e | 031b223ef09542b34ad495a941eb895ab367c2fa | /framework/codejam/extract/identifier.py | 2ce2957c989136bb6062e295cd1990ac9bc0d662 | [
"MIT"
] | permissive | neizod/coding-analysis | 7fb41af09cf193b18cac7b58da1f7c4ae085bc6c | cc086bcf204e570032d11b12a46ac819cfe93f2b | refs/heads/master | 2021-01-10T07:02:45.672795 | 2015-05-29T00:15:31 | 2015-05-29T00:15:31 | 36,041,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | import os
import logging
from framework._utils import FunctionHook
class CodeJamExtractIdentifier(FunctionHook):
''' This method will extract all identifiers in submitted source code
from each contestants for futher analysis. '''
@staticmethod
def get_identifiers(directory):
''' returns ... | [
"neizod@gmail.com"
] | neizod@gmail.com |
018091484c376685fd97ef99f65f8580350e4606 | 38c10c01007624cd2056884f25e0d6ab85442194 | /device/hid/hid.gyp | 00b9a90cafed806e6061d85486132b364e924b55 | [
"BSD-3-Clause"
] | 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 | 2,332 | gyp | # Copyright 2013 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.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'device_hid',
'type': 'static_library',
'include_dirs':... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
665ecc18a624f9b4460d72d5909f74e5e93b8d51 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1775.py | aaf9aaec4c26ff1808999763b15d3f1700a67c47 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,846 | py | # qubit number=5
# total number=60
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3d6df9e59eb1385aba3f6d29a0ddcc933590dc73 | 514fd4f09243055e4769efb426710338048454b1 | /tensorflow/python/data/kernel_tests/cache_test.py | b561cd58baf732f557d518e7eb237ab00512acc1 | [
"Apache-2.0"
] | permissive | nnsuite/ubuntuport-tensorflow | 7fa1d26f3cc282cd725bd87f2864c8ac2e76bf99 | 01ea2d56d3f87063f86076e45673fa49794eebb0 | refs/heads/debian/c_api/1.13.1 | 2022-12-14T03:14:59.691723 | 2022-12-06T07:29:53 | 2022-12-07T00:46:40 | 202,048,406 | 2 | 8 | Apache-2.0 | 2022-12-07T00:46:41 | 2019-08-13T02:36:22 | C++ | UTF-8 | Python | false | false | 9,031 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"myungjoo.ham@samsung.com"
] | myungjoo.ham@samsung.com |
ecefc29203c6dbd9ad3567e3c4923a92540392cc | 1c390cd4fd3605046914767485b49a929198b470 | /codechef/MODULO3.py | 56225738efe0487b5051721c932373bd79d04918 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | for t in range(int(input())):
a, b = map(int, input().split())
if a % 3 == 0 or b % 3 == 0:
print(0)
elif a % 3 == b % 3:
print(1)
else:
print(2) | [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
1eb5f0a5a7672ff71340cf10f0cff2fccd26163f | b346530b455135b224470511061cffcffa6274b5 | /test/hierarchical/test_hierarchical.py | 452d9eae3c129fcdb8f095a3b34bac964cbcce4a | [
"BSD-3-Clause"
] | permissive | ICB-DCM/pyPESTO | cd3ac5c26be0648c77a409d012a6321ade968d5d | 9a754573a7b77d30d5dc1f67a8dc1be6c29f1640 | refs/heads/main | 2023-09-03T19:34:55.581478 | 2023-06-29T09:22:57 | 2023-06-29T09:22:57 | 142,321,950 | 174 | 48 | BSD-3-Clause | 2023-09-14T14:59:50 | 2018-07-25T15:51:29 | Python | UTF-8 | Python | false | false | 14,990 | py | """Tests for hierarchical optimization."""
import time
import amici
import numpy as np
import pandas as pd
import petab
import pypesto
from pypesto.C import (
INNER_PARAMETER_BOUNDS,
LOG10,
LOWER_BOUND,
MODE_FUN,
UPPER_BOUND,
InnerParameterType,
)
from pypesto.hierarchical.parameter import Inn... | [
"noreply@github.com"
] | ICB-DCM.noreply@github.com |
6386bb45b6d3ab17a1f9afcb15656b0f1a6892fe | 989b3499948137f57f14be8b2c77d0610d5975e6 | /question_python(resolved)/chapter3_data_type(완결)/ii_replace_it.py | 01732f47a8bda1b2a4f65637446d87f13dd4f158 | [] | no_license | namkiseung/python_BasicProject | 76b4c070934ad4cb9d16ce844efa05f64fb09ac0 | 460d05248b2d1431624aba960e28bece888643e4 | refs/heads/master | 2022-12-13T21:12:06.865241 | 2020-04-23T01:30:08 | 2020-04-23T01:30:08 | 142,980,920 | 1 | 1 | null | 2022-12-08T02:27:40 | 2018-07-31T07:49:17 | Python | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
def replace_it(input_str):
""" 입력된 문자열에 소문자 o를, 대문자 O로 바꿔서 반환하는 함수를 작성해보자
hint: replace
sample data: "google"
expected output: "gOOgle"
"""
result=input_str.replace('o', 'O')
# 여기 작성
return result
if __name__ == "__main__":
input... | [
"rlzld100@gmail.com"
] | rlzld100@gmail.com |
415e464cf1107b46d06e17330af69e5a62cabaa7 | 86986fc336d87823b45c427ac2326d6d733c7f91 | /social/groups/views.py | ab699144185ce0ecbebdbef63e928827bb1996db | [] | no_license | CryptAthlos/cryptathloscap | b0d83efb1ed9d628677aec47a24841f6fa52ed4c | 1a91ce7a0f57548523e02a7f1544018ccd587d4d | refs/heads/master | 2020-03-15T12:11:36.453570 | 2018-05-29T09:09:50 | 2018-05-29T09:09:50 | 132,138,497 | 0 | 0 | null | 2018-05-29T09:09:51 | 2018-05-04T12:39:09 | Python | UTF-8 | Python | false | false | 1,927 | py | from django.contrib import messages
from django.db import IntegrityError
from django.shortcuts import render, get_object_or_404
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from django.core.urlresolvers import reverse
from django.views import generic
from groups.models import Group... | [
"jon.froiland@gmail.com"
] | jon.froiland@gmail.com |
a4aebac3982dc6e6551d597587c45f909039ce3b | c3612d29df2fd6224c61b693a0cbd3554b6213f2 | /03_django/06_django_axios/articles/views.py | c25a540c0aa075716a900db72f11ad0f2cf75694 | [] | no_license | mycomax0416/TIL | 5a12b8067e22fc095c7998b9ffb17d6fb210933f | 21d3b62db84b1fd64318a278eddc287bdc9678f0 | refs/heads/master | 2023-01-11T00:59:42.851469 | 2019-11-28T08:48:54 | 2019-11-28T08:48:54 | 195,918,118 | 3 | 0 | null | 2023-01-07T16:48:23 | 2019-07-09T02:31:05 | Jupyter Notebook | UTF-8 | Python | false | false | 6,798 | py | import hashlib
from django.http import JsonResponse, HttpResponseBadRequest
from IPython import embed
from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect, get_object_or_404
from django.http import Http404, HttpResponse
f... | [
"mycomax0416@gmail.com"
] | mycomax0416@gmail.com |
d7269d784f0dd8367a8b8ad07ab5661409480603 | 51d0377511a5da902033fb9d80184db0e096fe2c | /21-deep-learning-in-python/1-basics-of-deep-learning-and-neural-networks/01-coding-the-forward-propagation-algorithm.py | 52eed540367f55989509b534772aa4bdd0b4485f | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | '''
Coding the forward propagation algorithm
In this exercise, you'll write code to do forward propagation (prediction) for your first neural network:
https://s3.amazonaws.com/assets.datacamp.com/production/course_3524/datasets/1_4.png
Each data point is a customer. The first input is how many accounts they have, an... | [
"a@skrasnov.com"
] | a@skrasnov.com |
5b8c798cf4696fcbcf01bc1c454ccfac58142539 | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week2/NestedForLoops/printMysteryStarShape.py | e984963bec5498ff2b46607c922afbc823618747 | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | def printMysteryStarShape(n):
for row in range(n):
print(row, end=" ")
for col in range(row):
print("*", end=" ")
print()
printMysteryStarShape(5)
| [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
39cbb5a9beaf9637dc7fb56113ad2c3884e152c0 | 93c43f774b11d3f44a3c4b83ab94be3600d606df | /Deep-Learning/R-CNN/utils.py | 40a7d2ba1b2752903b37b5576f40183ecfa2485c | [
"Apache-2.0"
] | permissive | sadbb/CVCode | 299afeafb5a09d030b42ec00c6cd9c8087bc718f | c7c8b527af786d8f113122231e6296987b242b59 | refs/heads/master | 2020-04-07T04:24:04.040378 | 2018-11-17T14:13:23 | 2018-11-17T14:13:23 | 158,053,757 | 1 | 0 | Apache-2.0 | 2018-11-18T05:41:43 | 2018-11-18T05:41:42 | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding:utf-8 -*-
import numpy as np
def get_IoU(ground_truth, region):
# xmin, ymin, xmax, ymax
x1 = max(ground_truth[0], region[0])
y1 = max(ground_truth[1], region[1])
x2 = min(ground_truth[2], region[2])
y2 = min(ground_truth[3], region[3])
if x2 - x1 < 0:
return 0
inte... | [
"529768926@qq.com"
] | 529768926@qq.com |
b881534e43a240f73a78798cdc8a12f464a714f5 | 0ddfc02a2cc459e6ccd5322571b430af3b86001b | /book_management/book_management/asgi.py | bec0c1dc1ddae3d2adafba607aa143eb00c27844 | [] | no_license | XMLPro/2020_groupdev | 87e5d6d6f9d91bff79f56c29bf24e02b6322fac8 | 3f01e3e7e74ed76950d2526d74de566158bf3971 | refs/heads/master | 2023-07-18T16:17:23.892887 | 2020-06-09T12:50:07 | 2020-06-09T12:50:07 | 267,032,912 | 1 | 1 | null | 2021-09-22T19:11:47 | 2020-05-26T12:10:05 | Python | UTF-8 | Python | false | false | 407 | py | """
ASGI config for book_management project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"sakakazu2468@icloud.com"
] | sakakazu2468@icloud.com |
661012d59719e3422c970f2479d9719ecb5d6489 | 40132307c631dccbf7aa341eb308f69389715c73 | /OLD/idmt/maya/MTD/getInfoByName.py | b34d1be3aea426c52a8e50c35ea69f19dc77fa97 | [] | no_license | Bn-com/myProj_octv | be77613cebc450b1fd6487a6d7bac991e3388d3f | c11f715996a435396c28ffb4c20f11f8e3c1a681 | refs/heads/master | 2023-03-25T08:58:58.609869 | 2021-03-23T11:17:13 | 2021-03-23T11:17:13 | 348,676,742 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | __author__ = 'xuweijian'
import maya.cmds as mc
class getInfoByName():
def getInfoByScene(self):
dict={}
fileName = mc.file(q=1, sn=1,shn=1)
SceneName=fileName
info=SceneName.split('_')
SCinfo=[info[1][1:3],info[1][4:7]]
dict['project']=info[0]
dict['scene']=... | [
"snakelonely@outlook.com"
] | snakelonely@outlook.com |
d83be9292f9ea22d23ead848f56214334727719b | 69cefee12d0bd4c374c5a0f0ebb25c6c92e58475 | /src/core/geom/prim/box.py | 729b0676b2dcc540335185f15922f26bc295a481 | [] | no_license | PlumpMath/panda3dstudio | 5821353ce5519733f0d75fc518dd97f2e6c1da6c | e736f17bcfb1c597fd4b217610bd5430642eea5a | refs/heads/master | 2021-01-25T06:55:38.174353 | 2017-05-21T14:04:27 | 2017-05-21T14:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,850 | py | from .base import *
def _get_mesh_density(segments):
poly_count = 2 * segments["x"] * segments["y"]
poly_count += 2 * segments["x"] * segments["z"]
poly_count += 2 * segments["y"] * segments["z"]
return poly_count
def _define_geom_data(segments, temp=False):
geom_data = []
# store PosObjs... | [
"Epihaius@users.noreply.github.com"
] | Epihaius@users.noreply.github.com |
1df2a7f99628c9b74c20ae77a1c0534f60c03ee2 | 46f2834ae92da9e17463def0c635f75bf05886a1 | /abc/abc138/D/main.py | 9b51ace7c6d8605a5b3a4db56c898dc568cb7d84 | [] | no_license | replu/atcoder | bf3da10c937c955ca1bc3fa33b8f24c74d2d6c50 | a6183d03355058bccc2b89db5e07b7f72598fea3 | refs/heads/master | 2023-03-30T15:03:47.879783 | 2021-03-28T17:08:19 | 2021-03-28T17:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #!/usr/bin/env python3
import sys
def solve(N: int, Q: int, a: "List[int]", b: "List[int]", p: "List[int]", x: "List[int]"):
return
# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
... | [
"n.small.island@gmail.com"
] | n.small.island@gmail.com |
acd05ffa3bcc918a2abbf4312a2812f07553c039 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp209_3500.py | 5fa9737008648c72e1023832853fbdab46d1d6c0 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,815 | py | ITEM: TIMESTEP
3500
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.7138210531037575e+02 2.1858210531042008e+02
-1.7138210531037575e+02 2.1858210531042008e+02
-1.7138210531037575e+02 2.1858210531042008e+02
ITEM: ATOMS id type xs ys zs
37 1 0.526386 0.0125299 0.0148382
1848 1 0.61859 0.041269 0.0431283
911 1 0.4... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
89fdfc7929383d46dd47a2c43d1b8f94270d44c9 | e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488 | /duo_auth/vendor/duo_client_python/duo_client/accounts.py | 556580b7f43fe411ee3f8915eed02cbb5f3ca610 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | OSSSP/insightconnect-plugins | ab7c77f91c46bd66b10db9da1cd7571dfc048ab7 | 846758dab745170cf1a8c146211a8bea9592e8ff | refs/heads/master | 2023-04-06T23:57:28.449617 | 2020-03-18T01:24:28 | 2020-03-18T01:24:28 | 248,185,529 | 1 | 0 | MIT | 2023-04-04T00:12:18 | 2020-03-18T09:14:53 | null | UTF-8 | Python | false | false | 1,287 | py | """
Duo Security Accounts API reference client implementation.
<http://www.duosecurity.com/docs/accountsapi>
"""
from __future__ import absolute_import
from . import client
class Accounts(client.Client):
def get_child_accounts(self):
"""
Return a list of all child accounts of the integration's acc... | [
"jonschipp@gmail.com"
] | jonschipp@gmail.com |
ad182d71d82a93f43397c6323d260b37ee09705a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_160/ch10_2019_06_06_18_15_04_170519.py | e076ee131d18a9953d0f81065eebe575a27e2103 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | def libras_para_kg(libras):
kg = libras/2.20
return kg | [
"you@example.com"
] | you@example.com |
5ea84d476170a94be1ff7dcd2b8b67bd8b5db885 | 782316ea755c025a331bf084b89b7d8e775a36eb | /main.py | c94a3077af22bb818b1e35bf4284517ec30f27e5 | [] | no_license | ravenusmc/market | eb7c5f1e1736a3de02d77df7f7e63828dab6bca6 | ad9fed2e24b8789e8ae6b554dfa219cd50d089d6 | refs/heads/master | 2021-08-19T14:49:04.153170 | 2017-11-26T18:34:51 | 2017-11-26T18:34:51 | 106,032,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,564 | py | #importing outside libraries for use in the project
from flask import Flask, session, jsonify, redirect, url_for, escape, render_template, request, flash
import json
import requests
#importing files I made for this project
from food import *
from food_data import *
from quote import *
from user import *
#Setting up ... | [
"mcuddy77@gmail.com"
] | mcuddy77@gmail.com |
c0eaa6d05399b136b2483494825e6cbc648f18a0 | fd11d784974fc316b57dfd48827c038ff0d98909 | /baselines/jft/experiments/jft300m_vit_base16.py | 108071743048fce2f8459f78789299f0b9641fde | [
"Apache-2.0"
] | permissive | SuhongMoon/uncertainty-baselines | ada6c3382f91aeff548d5fb707863f08acd8fc7b | 1a7b24f86994c7b69d9263bf47be7169736f0da9 | refs/heads/main | 2023-08-05T21:07:12.515521 | 2021-09-13T20:50:57 | 2021-09-13T20:51:22 | 398,609,284 | 0 | 0 | Apache-2.0 | 2021-08-21T16:45:13 | 2021-08-21T16:45:12 | null | UTF-8 | Python | false | false | 3,225 | py | # coding=utf-8
# Copyright 2021 The Uncertainty Baselines 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 ap... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
ffbf4f577cb055f3ba0aff800f1e40d5f72aef31 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3039.py | c0fc7a7b9f2a2f7aa673c3c70009e8f2ea1a127d | [] | 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 | 1,341 | py | #!/usr/bin/python
import sys,os
def solve(index1, grid1, index2, grid2):
"""Returns a string result to one case of a problem"""
intersection = set(grid1[index1]) & set(grid2[index2])
if len(intersection) > 1 :
return "Bad magician!"
if len(intersection) < 1 :
return "Volunteer cheated!... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
bae6c38d93ed8a773579e39d1ec375da72b1dfee | 0ef993b4dc63d6ed10e579304f6258c04f5d9f47 | /032.py | 668f6bd489044477e6250af0ad17fe73f9ba29ac | [] | no_license | yu5shi8/yukicoder | c5eb9f77d355cfdb1ae4e36634acca18b1d797f2 | 2bfc5b1b044b8f2c5a33db037585788787ebbc88 | refs/heads/master | 2020-05-02T04:46:17.694923 | 2020-03-12T08:37:28 | 2020-03-12T08:37:28 | 177,757,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # -*- coding: utf-8 -*-
# No.32 貯金箱の憂鬱
# https://yukicoder.me/problems/5
# 硬貨の枚数を入力
l = int(input())
m = int(input())
n = int(input())
# 後から見返してみると、if を毎度付けなくても良かった件
# 1円硬貨の場合
if n >= 25:
m = m + (n // 25)
n = n % 25
# 25円硬貨の場合
if m >= 4:
l = l + (m // 4)
m = m % 4
# 100円硬貨の場合
if l >= 10:
l = l ... | [
"royal_unicorn411@hotmail.co.jp"
] | royal_unicorn411@hotmail.co.jp |
9331f10c63e60f252f6aea317e8e0f8981837a4e | d1c6de4e0d4aafbe1e7d15a02487494f86bf9b7e | /알고리즘문제/공통조상.py | fb4e31b961fce86f0136ebde7630b07013b14abe | [] | no_license | kdm604/TIL | d2ce2122e0b828a595530ac2a405a4661cf60205 | 554bbd8e884f4e7fbebdefbfa22a1a5eee0fa452 | refs/heads/master | 2023-01-11T21:41:57.845549 | 2020-03-24T08:55:10 | 2020-03-24T08:55:10 | 195,938,033 | 0 | 0 | null | 2023-01-05T01:14:37 | 2019-07-09T05:23:00 | Python | UTF-8 | Python | false | false | 1,048 | py | def check(T):
if T:
ans.append(nxn[T][2])
check(nxn[T][2])
def check2(T):
if T:
ans2.append(nxn[T][2])
check2(nxn[T][2])
def number(T):
if T:
num.append(T)
number(nxn[T][0])
number(nxn[T][1])
T = int(input())
for test in range(T):
V, E, A, B = map... | [
"kdm604@naver.com"
] | kdm604@naver.com |
9e1518600878f1c780387c3d1ba96ee3f7a7b7d8 | f889bc01147869459c0a516382e7b95221295a7b | /test/test_sales_data_shipment_item_creation_interface.py | b6198d3e36b25d454919911ba2064c4129ed7f47 | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
31f909913d17784821fc85958b1ace8371fbcc6c | e0378adb07d3a051b65420e98ed8d141aabcbf18 | /Assignment 10/tests/test_repository.py | 1992e7d97bbfc504289619266be344a85d787f3c | [] | no_license | BVlad917/Fundamentals-of-Programming | bc36c961be8d7144dd57aaf97b7419db551bd291 | afd98cd572d456b2dda40c41882c1f2eb8f139f5 | refs/heads/main | 2023-08-06T17:02:26.966825 | 2021-09-20T19:56:11 | 2021-09-20T19:56:11 | 408,119,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,590 | py | import unittest
from domain.person import Person
from repository.custom_repo import Repository
from repository.in_memory_repo import Repository as InMemoryRepo
from repository.repository_exceptions import DeleteException, AddException, RepositoryException
class TestRepository(unittest.TestCase):
def set... | [
"noreply@github.com"
] | BVlad917.noreply@github.com |
0182ed33149dae1755168e285acaf878bfeb96b8 | bd4535b2ff5fc80234eed709f46da53b9ab260cf | /Packs/TeamCymru/Integrations/TeamCymru/TeamCymru_test.py | 84aa522a7c62c7309caf6468531c5395be42a3bd | [
"MIT"
] | permissive | vibhuabharadwaj/content | 0641284c862668b577e82e32e2daecdb9fabb39a | 518da763814fefce538379560282ff8c2ce661b9 | refs/heads/master | 2023-03-07T21:36:31.768989 | 2022-09-28T15:50:46 | 2022-09-28T15:50:46 | 202,795,410 | 1 | 0 | MIT | 2023-03-06T17:25:01 | 2019-08-16T20:30:23 | Python | UTF-8 | Python | false | false | 8,298 | py | """TeamCymru for Cortex XSOAR - Unit Tests file"""
import json
import demistomock as demisto
import pytest
from unittest.mock import MagicMock
import TeamCymru
'''GLOBALS'''
client = MagicMock()
MOCK_ENTRY_ID = '@123'
MOCK_BULK_LIST = "1.1.1.1, b, 2.2.2, n, 3.3.3.3,2001:0db8:85a3:0000:0000:8a2e:0370:7334,a,\"8.8.8.... | [
"noreply@github.com"
] | vibhuabharadwaj.noreply@github.com |
04196cf405334cb323c1846ac46eeb6777d8eef4 | 8b634dc196162dff328d61bf6f8d4121dfb59bd4 | /Queue/movingAverage.py | 87c8bc033130a1c01772012764b36c6e3cf616d4 | [] | no_license | kqg13/LeetCode | 84268b2146dc8323cb71f041b6664069baaa339c | 1c584f4ca4cda7a3fb3148801a1ff4c73befed24 | refs/heads/master | 2023-08-05T09:46:28.103910 | 2023-07-29T21:02:26 | 2023-07-29T21:02:26 | 165,123,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | # Easy queue problem 346: Moving Average from Data Stream
# Given a stream of integers and a window size, calculate the moving average
# of all integers in the sliding window.
# Example:
# MovingAverage m = new MovingAverage(3);
# m.next(1) = 1
# m.next(10) = (1 + 10) / 2
# m.next(3) = (1 + 10 + 3) / 3
# m.next(5) = ... | [
"skg2016@nyu.edu"
] | skg2016@nyu.edu |
6d1846fe2f0d777ba67f4e06e571587e1499e552 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/remove-all-ones-with-row-and-column-flips.py | c8c1b705b138b90f15933da251f8e4dc0c4d8bf7 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 302 | py | # Time: O(m * n)
# Space: O(1)
class Solution(object):
def removeOnes(self, grid):
"""
:type grid: List[List[int]]
:rtype: bool
"""
return all(grid[i] == grid[0] or all(grid[i][j] != grid[0][j] for j in xrange(len(grid[0]))) for i in xrange(1, len(grid)))
| [
"noreply@github.com"
] | kamyu104.noreply@github.com |
71f373e412b3cdc65f292f31da7234801c241465 | fb16f7024e0d93ecb07c122e633c1a957a8ab645 | /django/project31/app31/views.py | 879c85bbdf9271ed121d3b5472a6fc43df156373 | [] | no_license | rajeshanu/rajeshprograms | c23cf550e060040c7b336242a805e274d3305371 | 83f0fc9c4a8628bba590d1066ca93fd98137f0bc | refs/heads/master | 2020-04-04T13:17:55.986558 | 2018-11-03T06:42:51 | 2018-11-03T06:42:51 | 155,956,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | from django.shortcuts import render
from .models import register
from app31.models import login
# Create your views here.
def showindex(request):
return render(request,"index.html")
def show(request):
name=request.POST.get("t1")
cno=request.POST.get("t2")
email=request.POST.get("t3")
password=req... | [
"44720126+rajeshanu@users.noreply.github.com"
] | 44720126+rajeshanu@users.noreply.github.com |
b8997bbbf7cc05c670173ee6e09e86e7926a283b | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/eliben_deep-learning-samples/deep-learning-samples-master/logistic-regression/timer.py | 91f4c60c70cdc0ca403d542731a68b3ae57a0cdd | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 411 | py | from __future__ import print_function
import sys
import time
class Timer(object):
def __init__(self, name=None):
self.name = name
def __enter__(self):
self.tstart = time.time()
if self.name:
print('[%s] ' % self.name, end='')
sys.stdout.flush()
def __exit__... | [
"659338505@qq.com"
] | 659338505@qq.com |
a3fa619d0476dcab06ff8e9e1a778e21dcc927c2 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/DataQuality/DataQualityUtils/scripts/physval_make_web_display.py | 00caa4b028f5b52fe6935076c5a26874739787fa | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,841 | py | #!/usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
"""
Transate arbitrary root file into a han config file
@author: ponyisi@utexas.edu
9 Oct 2008
Adapted for physics validation 14 May 2014
"""
from DQConfMakerBase.DQElements import *
from DQConfMakerBase.Helpers import ID... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
5583ff3947649c6f8c30dd9edb02cad147b9a2fe | 60543d88cb19e7a264cf30622cb45ea039b243f8 | /mnist/keras/mnist_train.py | 07627f828c25aef98e42601ab9c313a26050aa83 | [] | no_license | andrewsmedina/kaggle | 90b3a9bb6945b839d75ee4a9bb52d76b4b5c9bef | 51bc2fad9e6b57e00ed50e36897870cdbead6372 | refs/heads/master | 2021-01-10T22:19:58.366222 | 2018-07-29T16:39:55 | 2018-07-29T16:39:55 | 69,138,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras import backend as K
batch_size = 128
num_classes = 10
epochs = 12
# input image dimensions
i... | [
"andrewsmedina@gmail.com"
] | andrewsmedina@gmail.com |
0819c7e1251822f165d64e5c64fa8b790cb86716 | bb4dc40ec0b62e5d2fc3ce1234013aebd4e648d5 | /src/modules/customised/payroll_test_2/payroll_currupt/hr_payroll_arrear/hr_payroll_arrear.py | e84abac33ee604e572e2008b06091712ae5e3934 | [] | no_license | kakamble-aiims/work | ba6cbaf4c525ff7bc28d0a407f16c829d0c35983 | cd392bf0e80d71c4742568e9c1dd5e5211da56a9 | refs/heads/master | 2022-04-02T14:45:58.515014 | 2019-12-31T14:00:51 | 2019-12-31T14:00:51 | 199,015,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from trytond.pool import Pool, PoolMeta
__all__ = [
'HrSalaryRule',
]
class HrSalaryRule(metaclass=PoolMeta):
__name__ = 'hr.salary.rule'
def calculate_OTA(self, payslip, employee, contract):
amount = 0
pool = Pool()
ota = pool.get('hr.allowance.ota')
ot_allowanc... | [
"kakamble.aiims@gmail.com"
] | kakamble.aiims@gmail.com |
6c87fe2f66b078f6b284dbe97e0a53bba2d75771 | 35c8d8762a87f9adf8964d1ec50c7ed69583d92e | /lecturer/migrations/0004_auto_20171213_2143.py | f91ccaab02e610d73c024ecf38f583e4da85ef7a | [
"MIT"
] | permissive | VirginiaNdungu1/Grading-System | f15b9c1346986fc10336ab75938079393331330e | 7f30a81cf2b1717c9f0a5a7f5814404c646eee9d | refs/heads/master | 2021-05-06T06:34:39.719493 | 2017-12-24T14:30:04 | 2017-12-24T14:30:04 | 113,868,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # Generated by Django 2.0 on 2017-12-13 18:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lecturer', '0003_auto_20171213_1916'),
]
operations = [
migrations.AddField(
model_name='profile',
name='roles',
... | [
"ndungu.wairimu22@gmail.com"
] | ndungu.wairimu22@gmail.com |
99a93a979b8bff83507c7790ad34b390b3361f5b | 3f4edccfbcada494673214bb4556dea5098a7af3 | /dataset/binary_train.py | 9321d1f73510ec2044f114ff440353e7bd602448 | [] | no_license | Below0/konlpy-nf-analyzer | a79b401c641586fd191f518286c2aa54f9f4cf25 | e6abf1181efccdad15bfd1119320f70d709ab440 | refs/heads/master | 2023-01-21T11:29:29.053651 | 2020-11-29T09:54:09 | 2020-11-29T09:54:09 | 315,824,970 | 0 | 0 | null | 2020-11-25T11:34:16 | 2020-11-25T04:05:55 | Jupyter Notebook | UTF-8 | Python | false | false | 3,982 | py | import codecs
import csv
import pandas as pd
import numpy as np
import os
import sys
import urllib.request
from urllib.parse import *
import requests
from bs4 import BeautifulSoup
#from kafka import KafkaProducer
import json
import re
import json
import datetime
from konlpy.tag import *
import konlpy
import re
from ker... | [
"l4538@naver.com"
] | l4538@naver.com |
91759c4c00968d80511f1adeb92b86e2bbe92547 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2169/60615/257442.py | 8f2708f19202be73ba8ddf22bf44ef88570c0474 | [] | 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 | 606 | py |
time=int(input())
result=[]
opset=['+','-','*','/']
while time>0:
postfix=[i for i in input()] #231*+9-
num=[]
for item in postfix:
if item not in opset:
num.append(int(item))
else:
if item=='+':
temp=num[-2]+num[-1]
elif item=='-':
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e88db4589a9f0746f6feef2ebb164eba6e4790e2 | 62974b03a14008f950db0c68d5962311a3401d3b | /medium/slidewindow/test_209_Minimum_Size_Subarray_Sum.py | 0932a43778243b2896f0388d188dcf9c386f90e7 | [] | no_license | wuxu1019/leetcode_sophia | 818f39e8324aaf2b588150b1f7edbc2897f64935 | 0e99f9a5226507706b3ee66fd04bae813755ef40 | refs/heads/master | 2018-10-13T13:58:29.762836 | 2018-07-24T04:20:23 | 2018-07-24T04:20:23 | 111,624,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | """
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't one, return 0 instead.
Example:
Input: [2,3,1,2,4,3], s = 7
Output: 2
Explanation: the subarray [4,3] has the minimal length under the problem constraint.
"""
cl... | [
"wuxu1019@hotmail.com"
] | wuxu1019@hotmail.com |
4c75404055009fd4e4fe3fb26886920537e95665 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/3855.py | 20efe8a1143906981815f06e93781546149a4733 | [] | 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 | 1,522 | py | import sys
class InputFileParser(object):
def __init__(self, filename):
self.test_cases = []
with open(filename, 'r') as in_f:
self.test_case_count = int(in_f.readline())
for i in xrange(1, self.test_case_count + 1):
tc = TestCase(i)
tc.last ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8433440edf9c893209f3b5aff55141b655b9b5d9 | ae5a285b64731886c736a076b9cb35b6f5e18266 | /blogs/mainapp/urls.py | b25f20645ded6357044666bb29924b915c61d538 | [] | no_license | MichaelDc86/test_task_django | 0c398af6c748532bcdc217f9dd23acdfd48ce0c5 | 04a58a29f6786037e310329a9b28a13efbfe2d41 | refs/heads/master | 2023-04-26T14:48:32.183376 | 2019-06-28T13:29:21 | 2019-06-28T13:29:21 | 193,847,278 | 0 | 0 | null | 2023-04-21T20:33:20 | 2019-06-26T06:57:04 | JavaScript | UTF-8 | Python | false | false | 732 | py | from django.contrib.auth.views import LogoutView
from django.urls import re_path
import mainapp.views as mainapp
app_name = 'mainapp'
urlpatterns = [
re_path(r'^$', mainapp.BlogListView.as_view(), name='blog_list'),
re_path(r'login/$', mainapp.BloggerLogin.as_view(), name='login'),
re_path(r'register/$',... | [
"lenskymiwa@ya.ru"
] | lenskymiwa@ya.ru |
257e6320821547e22d65ca68d945fad58dc00cfe | 276c86a451c4110ba0885dbe8509d46f23c21715 | /esp32-micropython/examples/oled_thermometer.py | e94deebb1ab3bf42ebb3dc5fddf9718e04a3d88f | [] | no_license | vtt-info/octopuslab | 055c9bfdc1466a6e5acf90a3cd0db2826e72dee7 | 3d20933c05bae3eec4d0c033f228bde369e46e07 | refs/heads/master | 2022-07-27T14:19:16.386241 | 2020-05-16T13:50:21 | 2020-05-16T13:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # octopusLAB example - 2019
# simple example: dallas thermometer and oled display
from time import sleep
from util.octopus import oled_init
from util.iot import Thermometer
from util.display_segment import threeDigits
print("init > ")
ts = Thermometer()
oled = oled_init()
print("start > ")
while T... | [
"noreply@github.com"
] | vtt-info.noreply@github.com |
b79572bf6408b286a553a38cf007ee7d293068da | b2db386a35e167dd67d6de90d95c06d5c2ed91cd | /403_FrogJump.py | fcab3104b67560cffd6596e6451af41ef135978a | [] | no_license | rohitmungre/leetcode | 9edb1b8b0cd714eb1a5e1fa847f2e17c455fd624 | d49836b2b46a980f073bb9a6f2e47c4a903e48ac | refs/heads/master | 2020-08-07T16:55:38.699188 | 2020-03-12T11:00:13 | 2020-03-12T11:00:13 | 213,531,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | import copy
class Solution(object):
def canCross(self, stones):
"""
:type stones: List[int]
:rtype: bool
"""
if len(stones) == 0:
return False
return self.cc_dp(stones, 0, [], {})
def cc_dp(self, stones, idx, steps, me... | [
"noreply@github.com"
] | rohitmungre.noreply@github.com |
db2c9ab6255eab8ada3b3adeee266a9885a90be2 | 31a928cff4960236923b6bc3b68e34bb2f46f470 | /Speculator/speculator/utils/stats.py | b5694a5daf9476ee9825d50ef9478a2dc65ded64 | [
"MIT",
"BSD-3-Clause"
] | permissive | webclinic017/ml_monorepo | 707df2afd2f986eb0721d26430e6135c917817c6 | 945f0a83d6b94282c547bb6f4805f3381ad9c16a | refs/heads/master | 2021-10-19T21:02:53.322944 | 2019-02-19T20:58:51 | 2019-02-23T20:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | """
Various math functions used throughout Speculator
"""
def avg(vals, count=None):
""" Returns the average value
Args:
vals: List of numbers to calculate average from.
count: Int of total count that vals was part of.
Returns:
Float average value throughout a count.
"""
... | [
"tmichael.yu@gmail.com"
] | tmichael.yu@gmail.com |
209b0f1761fc67877e597f756011b8176fe26c31 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/core/missing.py | 84bd72cb184263e97bf91d22e1eb5c4af5de2c80 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,162 | py | """
Routines for filling missing data.
"""
import numpy as np
from pandas._libs import algos, lib
from pandas.compat._optional import import_optional_dependency
from pandas.core.dtypes.cast import infer_dtype_from_array
from pandas.core.dtypes.common import (
ensure_float64,
is_datetime64_dtype,
... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
15e688993d21c158b79180b3621f8f9c92e788ca | f5c3841a08c3faa1818d3ee210c8b9921dc9499d | /sql/selection.py | 158e8c8c265a604e3ee97f88126eb69744e3da20 | [] | no_license | villancikos/realpython-book2 | a4e74b51fe1d3a8e5af206c2938ff4966ef00df6 | 6c9a2ef714531f1163f3c78c80fad335661dacf2 | refs/heads/master | 2016-09-06T10:06:49.227106 | 2014-09-22T18:56:58 | 2014-09-22T18:56:58 | 23,493,659 | 1 | 1 | null | 2014-09-19T23:35:40 | 2014-08-30T14:44:52 | Python | UTF-8 | Python | false | false | 304 | py | # SELECT statement
import sqlite3
with sqlite3.connect('new.db') as connection:
c = connection.cursor()
#for row in c.execute("SELECT firstname, lastname from employees"):
# print row
c.execute("SELECT firstname, lastname from employees")
rows = c.fetchall()
for r in rows:
print r[0],r[1]
| [
"villancikos@gmail.com"
] | villancikos@gmail.com |
3e8ef970d06299d87bd03604d228bc22a57da735 | 283bbf2ce575ea72010e9823907285b08d20fce4 | /breathecode/tests/mocks/screenshotmachine/requests_mock.py | bc661c61e3d798348dce1188edecdeee67e37d3f | [] | no_license | AnMora/apiv2 | c084ffcb4ff5b7a0a01dac8fca26f4f4c37aad97 | fa3b3f0ce4a069facdecd18e133c7b4222a0004a | refs/heads/master | 2023-05-19T23:00:34.257230 | 2021-06-08T21:17:56 | 2021-06-08T21:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | """
Requests mock
"""
class ResponseMock():
"""Simutate Response to be used by mocks"""
status_code = None
data = None
content = None
def __init__(self, status_code=200, data=''):
self.status_code = status_code
if isinstance(data, str):
self.content = data
else... | [
"jdefreitaspinto@gmail.com"
] | jdefreitaspinto@gmail.com |
cc7e44a17c3f456e0f8fa5d7f81a928fcb8c2e17 | d680f545562589a34224f3a422c00c1697c84c5d | /mutasi_aset_2021/perkim/pm_perkim_ke_dinas_koperasi/pm_perkim_ke_dinas_koperasi_insert.py | 43c13c1e420a8f0068401f47303524a0b009cc78 | [
"BSD-2-Clause"
] | permissive | muntaza/catatan_openaset_balangan | 9362d0beb4de6e0abc3f4ec5ebb63a5aaff66294 | 01d1eb79ea8f203d231956d74b88e39789d54429 | refs/heads/master | 2022-02-18T10:27:21.494091 | 2022-02-14T10:19:50 | 2022-02-14T10:19:50 | 233,332,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,923 | py | from peralatanmesin.models import PeralatanMesin
from gedungbangunan.clone_object import clone_object
def pm_perkim_ke_dinas_koperasi():
clone_object(PeralatanMesin.objects.get(pk=28772))
clone_object(PeralatanMesin.objects.get(pk=28773))
clone_object(PeralatanMesin.objects.get(pk=28774))
clone_object(... | [
"muhammad@muntaza.id"
] | muhammad@muntaza.id |
84936bffedb2e3603a2b4acff728d7de87b37826 | cf7c928d6066da1ce15d2793dcf04315dda9b9ed | /Jungol/Lv1_LCoder_Python/py20_변수와입력/Main_JO_725_변수와입력_자가진단6.py | bf0bc102b6ac2ee3d0fcceed1c228fdd9570335d | [] | no_license | refresh6724/APS | a261b3da8f53de7ff5ed687f21bb1392046c98e5 | 945e0af114033d05d571011e9dbf18f2e9375166 | refs/heads/master | 2022-02-01T23:31:42.679631 | 2021-12-31T14:16:04 | 2021-12-31T14:16:04 | 251,617,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | print("Number 1?")
Number1 = int(input())
print("Number 2?")
Number2 = int(input())
mul = Number1*Number2
div = float(Number1)/Number2
print("%d * %d = %d" % (Number1, Number2, Number1 * Number2))
# 왜 다를까
# print("%d / %d = %f" % (Number1, Number2, Number1 / Number2))
# 79 / 74 = 1.067568
print(f"{Number1} / {Number2}... | [
"refresh6724@gmail.com"
] | refresh6724@gmail.com |
c8aa8d0b005670120daa41f4f2b57539208a43e2 | a5a386c05ea962cd34f27214130d4117e650f1e7 | /awards/serializer.py | ee55415fb39d51df5732b1ccd57ce5a92ccf01d0 | [
"MIT"
] | permissive | iankabugi/Awards | eccba8866b16830ced36227c657c773a1bb5088b | 3d0e58faf679b71cf4e588e59e8c705660830d2f | refs/heads/master | 2021-09-09T09:33:12.535405 | 2019-06-25T22:43:32 | 2019-06-25T22:43:32 | 175,820,927 | 1 | 0 | MIT | 2021-09-08T00:54:20 | 2019-03-15T13:00:27 | Python | UTF-8 | Python | false | false | 370 | py | from rest_framework import serializers
from .models import Profile, Project
class ProfSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = ('bio', 'profile_pic', 'user')
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Project
... | [
"iank299@gmail.com"
] | iank299@gmail.com |
b0b14e8a0b6dfcb29da3c2d478cb88bddfc84212 | 68c1cb7e2e7b7bb4174951c817a36b16cf1e9f83 | /pytype/tools/arg_parser.py | c3fe1d9b319c84b1f507a25a020a0c5d6b218caa | [
"Apache-2.0",
"MIT"
] | permissive | priyansh19/pytype | f28f439943859f61e3ce5ff51d8a56a925ae5cb8 | 44b1f6f7cddccb326abac4c21b4f26688369764e | refs/heads/master | 2020-06-19T07:11:11.508597 | 2019-07-11T18:34:08 | 2019-07-11T18:34:08 | 196,610,656 | 2 | 0 | NOASSERTION | 2019-07-12T16:23:13 | 2019-07-12T16:23:13 | null | UTF-8 | Python | false | false | 2,790 | py | """Argument parsing for tools that pass args on to pytype_single."""
import argparse
from pytype import config as pytype_config
class ParserWrapper(object):
"""Wrapper that adds arguments to a parser while recording them."""
def __init__(self, parser, actions=None):
self.parser = parser
self.actions = ... | [
"rechen@google.com"
] | rechen@google.com |
c81b79fe6529cc8728ee50a7f74f7af8d732f321 | a8d1abca67457263e6e2d85e1005bbef2ef1b059 | /app/supplier/__init__.py | a260ee8c0aa173ca38726f57095177bdfa29ec35 | [] | no_license | kid-kodi/manager | a46d706b11e411943e86bcfbcdc19783826a73a8 | cb1f1233a795fce7148bcbf70989815687248db0 | refs/heads/master | 2022-12-05T04:29:24.248769 | 2018-12-28T11:00:58 | 2018-12-28T11:00:58 | 163,323,042 | 0 | 0 | null | 2022-11-22T02:55:02 | 2018-12-27T18:01:49 | Python | UTF-8 | Python | false | false | 95 | py | from flask import Blueprint
bp = Blueprint('supplier', __name__)
from . import routes, forms
| [
"konedangui@gmail.com"
] | konedangui@gmail.com |
38e12f8b9db38ea3e3eae5f141e881819ae484c8 | 6320fef2ea7376c2b35f97f1a5af004e90f09098 | /1-2주차 실습(복습)/venv/Lib/site-packages/pygame/_numpysndarray.py | 5daa10746bf656d4595f81604d3399fbe65bd257 | [] | no_license | Dplo1514/ploaistudy | 7aa08d7f71653748a9e32dcc09ee8f6cec0aaed9 | e35e42b1e5f0c90cc1e2a59993a1ef73d8872d0c | refs/heads/master | 2023-09-03T00:45:55.601651 | 2021-10-24T12:19:38 | 2021-10-24T12:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | ## pygame - Python Game Library
## Copyright (C) 2008 Marcus von Appen
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Library General Public
## License as published by the Free Software Foundation; either
## version 2 of the License, o... | [
"dladlsgur3334@gmail.com"
] | dladlsgur3334@gmail.com |
ebca73888ad4378afca4d9cc286766ded94c5a00 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03612/s108764043.py | 931ac55645fd8b56e3c8ddb91cf3650d5feaebe2 | [] | 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 | 325 | py | N = int(input())
A = list(map(int, input().split()))
cnt = 0
for i, a in enumerate(A, 1):
if a == i:
if i != len(A):
x = A[i - 1]
y = A[i]
A[i - 1] = y
A[i] = x
cnt += 1
else:
x = A[i - 2]
y = A[i - 1]
A[i - 2] = y
A[i - 1] = x
cnt += 1
print... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fb1aef471f1ebba3fa245f15ce0af02930d314ec | a37c6678a5630925e6600fe65113828918f80563 | /raylab/envs/environments/hvac.py | c23e639295c021d002a4d06af42c2efd75694361 | [
"MIT"
] | permissive | rudrasohan/raylab | 658186d2955b7f949ab13045fb8f72ac8bd17978 | 12b93003a863caf7f9ead621d3afe4c83c4d7ee1 | refs/heads/master | 2023-03-24T11:03:57.626283 | 2021-03-11T19:53:53 | 2021-03-11T19:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,344 | py | # pylint:disable=missing-docstring,invalid-name
import gym
import numpy as np
import torch
DEFAULT_CONFIG = {
"ADJ": [[False, True, True], [False, False, True], [False, False, False]],
"ADJ_OUTSIDE": [True, True, False],
"ADJ_HALL": [True, False, True],
"R_OUTSIDE": [4.0, 4.0, 4.0],
"R_HALL": [2.0... | [
"angelolovatto@gmail.com"
] | angelolovatto@gmail.com |
342cf1d5605e21d8c21f41d42db60fb27432b9a7 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/eagerli.py | 488fed7f8a0bcdbe716710498de1ed841c81ca21 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,767 | py | ii = [('EmerRN.py', 1), ('CookGHP3.py', 7), ('LyelCPG2.py', 1), ('MarrFDI.py', 4), ('RogePAV2.py', 3), ('CoolWHM2.py', 4), ('GodwWSL2.py', 6), ('RogePAV.py', 2), ('SadlMLP.py', 6), ('FerrSDO3.py', 1), ('WilbRLW.py', 3), ('WilbRLW4.py', 3), ('RennJIT.py', 3), ('AubePRP2.py', 1), ('CookGHP.py', 9), ('MartHSI2.py', 1), ('... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
77f6155a68dccbb2a045fcc13e502d7bf2afd801 | d7fac5517b409224584e5ffef20b1bf3dbb895cc | /test/test_generic_throttle_policy.py | 09f96db22b801129ab65e7415ccc4d0ff3aa0864 | [] | no_license | junetigerlee/python-wso2-apim-adminclient | 0bac09899e02a8eee6fd5a0e80cc34472ec6b055 | 7eca928a727e8eb6901c38be83bc1adeb87540cf | refs/heads/master | 2021-01-01T16:12:24.090906 | 2017-07-25T06:22:09 | 2017-07-25T06:22:09 | 97,788,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # coding: utf-8
"""
WSO2 API Manager - Admin
This document specifies a **RESTful API** for WSO2 **API Manager** - Admin Portal. It is written with [swagger 2](http://swagger.io/).
OpenAPI spec version: 0.11.0
Contact: architecture@wso2.com
Generated by: https://github.com/swagger-api/swagger-co... | [
"junetigerlee@gmail.com"
] | junetigerlee@gmail.com |
204856232cbe127a20e8e3eae73148857c5dab65 | d5f0377d31e708b0be7f1e79dca714e274deba67 | /hex_game/create_databases.py | 97e08f94919b393048db84a91eca2f71dc2fed7e | [] | no_license | Phyronnaz/TIPE_Hex | b65a2651476661930e52f07654d2a843b1201ddb | fda070968368204dac08ac81d79a4ab0d604296a | refs/heads/master | 2021-01-16T21:52:07.530676 | 2017-06-15T15:34:48 | 2017-06-15T15:34:48 | 68,295,841 | 0 | 0 | null | 2017-05-18T11:46:33 | 2016-09-15T13:22:49 | Jupyter Notebook | UTF-8 | Python | false | false | 477 | py | import os
import sys
# path = os.path.dirname(os.path.realpath(__file__))[:-8]
path = "/home/victor/PycharmProjects/TIPE_Hex/"
if path not in sys.path:
sys.path.insert(0, path)
import numpy as np
from hex_game.q_learning import create_database
size = int(sys.argv[1])
path = os.path.expanduser("~") + "/Hex/data... | [
"phyronnaz@gmail.com"
] | phyronnaz@gmail.com |
9f230e3838e4776ce4c598ffa0521f145bb1d3d8 | 7a0144da5a567d8497551b09875298ea224bb5bd | /백준/백준 1904.py | 8e1eae03c8e54734ee929270ed6129b7f8fe2c5d | [] | no_license | SLT-DJH/algorithm | dba34614bb0fbbad0ecf5d85b02cb541ab047c5a | e33c843be4efdfc6c6a7300ab4e53b9a7c4b2e67 | refs/heads/master | 2023-03-08T08:27:01.476793 | 2021-02-25T15:06:42 | 2021-02-25T15:06:42 | 297,017,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | def fibo(num) :
if num == 1 :
return 1
elif num == 2 :
return 2
else :
num = num - 2
a = 1
b = 2
while num != 0 :
c = (a+b) % 15746
a = b
b = c
num = num - 1
return b
a = int(input())
print(fibo(a))
| [
"jydwww@naver.com"
] | jydwww@naver.com |
3efae8c54e17d120f845bd7510d914395fad5f69 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /tests/kyu_4_tests/test_roman_numerals_encoder.py | e944d06c5e05cbbdc925b8114ab23e040fd2a232 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import unittest
from katas.kyu_4.roman_numerals_encoder import solution
class RomanNumeralsEncoderTestCase(unittest.TestCase):
def test_equals(self):
self.assertEqual(solution(1), 'I')
def test_equals_2(self):
self.assertEqual(solution(4), 'IV')
def test_equals_3(self):
self.ass... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
5f809c27b6953e210a747515d832cb54e2f3eadb | e34cbf5fce48f661d08221c095750240dbd88caf | /python/homework/day23_cmdb_web/s16MadKing/asset/views.py | 7ded2a7085ab28d0954eacb4d1a5ae9594548088 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 2,631 | py | from django.shortcuts import render, HttpResponse
import json
from django.views.decorators.csrf import csrf_exempt
from asset import core
from asset import utils
from asset.models import *
import datetime
# Create your views here.
@csrf_exempt
def asset_with_no_asset_id(request):
if request.method == 'POST':
... | [
"284607860@qq.com"
] | 284607860@qq.com |
800b9ad4822aef0e6593471d1a2f467a7fbb3365 | a499fbdd93f85a286505433a08afc25d84c8ff04 | /python/tvm/topi/gpu/dense.py | b9009d3f3393afddc4cb2d6a32b717cffa09776e | [
"Apache-2.0",
"Zlib",
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | elphinkuo/tvm | a81e0ccc5950a1473efdcdbb8263de9adbe36787 | 9df2ae8eaa8b394013182a7ad09ac57fe401f80e | refs/heads/main | 2023-08-05T07:41:18.652097 | 2021-09-28T00:38:26 | 2021-09-28T00:38:26 | 411,311,927 | 2 | 0 | Apache-2.0 | 2021-09-28T14:51:56 | 2021-09-28T14:17:46 | null | UTF-8 | Python | false | false | 8,459 | 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... | [
"noreply@github.com"
] | elphinkuo.noreply@github.com |
5b510ccf31da37f6df7b6f12e6ab9ac61759eaec | fffa5f1fe7e1d2bd875f302fefa2295563773440 | /posts/migrations/0001_initial.py | 204feab05266016c6f35f1128814ec13ff33dfd0 | [] | no_license | Awalamoo7/blogs-api | 9d2fe2d37837366863e8ffbab4372aa927e49875 | fd8112d666b10d728a3f12cfc284d7379eeedf41 | refs/heads/main | 2023-08-28T13:06:45.637222 | 2021-10-24T01:20:02 | 2021-10-24T01:20:02 | 420,555,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # Generated by Django 3.2.8 on 2021-10-23 17:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
... | [
"bmayowa25@gmail.com"
] | bmayowa25@gmail.com |
8fc3e828360f0eb1a186ea87f4cfc474a58e4949 | 195b8d12796872c05d539aa9283fc3f407b8d8b5 | /cinder/cinder/volume/drivers/nexenta/volume.py | 2b752314f48e0f3831ddd234b86042da954388a0 | [
"Apache-2.0"
] | permissive | rvbelapure/openstack-nova-sched | afaa5928da3a8430b64bc23aedb251bae0e7d3ef | 325da0e08979d79b7470d7506ced1b4210e2b696 | refs/heads/master | 2021-01-17T05:28:44.474242 | 2013-04-20T21:18:35 | 2013-04-20T21:18:35 | 9,082,500 | 0 | 1 | null | 2021-09-07T08:33:18 | 2013-03-28T17:30:46 | Python | UTF-8 | Python | false | false | 11,503 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2011 Nexenta Systems, 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.apa... | [
"owlpostarun@gmail.com"
] | owlpostarun@gmail.com |
cb9081784eab4efbdda08880b0b3ceeae5077746 | 1d9138d777744fa2d9d6e3b629a43041f2358d06 | /real_time/abc/116/2.py | 30a70f19d2c5f010e386aaa7b16333c9f9b3ca64 | [] | no_license | Yuyats/AtCoderAnswers | f1956b790ee64a4d0b3b48b98791a91679a30244 | fac7e3eb74a888e77ba7a6b6a15d836c589baa3e | refs/heads/master | 2021-06-24T16:19:45.848524 | 2021-06-13T03:51:07 | 2021-06-13T03:51:07 | 198,857,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | def f(n):
if n % 2 == 0:
return n / 2
else:
return 3 * n + 1
s = int(input())
a = []
for i in range(1, 1000000):
if i == 1:
a.append(s)
else:
ai = f(a[-1])
if ai in a:
print(i)
break
else:
a.append(ai)
def f(n):
... | [
"unitednum@gmail.com"
] | unitednum@gmail.com |
97d7f3bed79bfe6a5b45e7b0f4a83a690de7fcc1 | 10a18920f93008659f49b18fb016b84a21765e73 | /server/venv_ubuntu/lib/python3.8/site-packages/oslo_reports/tests/test_openstack_generators.py | 84bd46deb5bdd50843dced8da3a4d297ad4c65bb | [] | no_license | psitadmin/network-junco | 48fa704878fe9566cda393eddd88dafae07fa47c | 63a1e4afa46514852345e03eb32a2911621540f2 | refs/heads/master | 2023-08-18T07:01:48.836761 | 2021-09-28T09:47:42 | 2021-09-28T09:47:42 | 403,928,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,757 | py | # Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | [
"enrique.garcia.practicas@telefonica.com"
] | enrique.garcia.practicas@telefonica.com |
ede14b5deeefa8d17da62f26de32885f2fad3528 | c0c536f619292d8cac6bc0d340fa855ce6d21310 | /torch/_guards.py | 35550f1d664a71efca5309ca80d89bd38c780b67 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | manuelmusngi/pytorch | 32915e01515f1ba81cdd20340dbae5dbfe6809e6 | bab21d20ebf45a5dc620b48791bb526f664445a5 | refs/heads/main | 2023-07-01T23:21:47.013111 | 2023-06-19T19:34:42 | 2023-06-20T09:24:21 | 339,895,372 | 2 | 0 | NOASSERTION | 2021-02-18T00:46:11 | 2021-02-18T00:46:11 | null | UTF-8 | Python | false | false | 19,443 | py | import contextlib
import dataclasses
import enum
import logging
import traceback
import unittest.mock
import weakref
from abc import ABC, abstractmethod
from contextlib import contextmanager
from typing import (
Any,
Callable,
Dict,
Generic,
List,
NamedTuple,
Optional,
Set,
Tuple,
... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
376ec43ace0b27750be44e8dc6139fac96157d25 | 9e138b34d78573f70ef9bdb3335efa1fd65712aa | /users/migrations/0002_auto_20210122_0209.py | 138dbebb6e18566f27d87a81983c82259772b95b | [] | no_license | crowdbotics-apps/sample-23979 | 425d0a0f1542ddc4189d68ca941eb3e0b1dcbae6 | 08630ad101da5da1bff294b827630c9114be5f22 | refs/heads/master | 2023-02-20T05:10:47.820119 | 2021-01-22T02:09:03 | 2021-01-22T02:09:03 | 331,809,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.17 on 2021-01-22 02:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='name',
field=... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6fd5d011b418c7de5e80a6fbddc50b9f85a3fcfe | 141d1fb160fcfb4294d4b0572216033218da702d | /exec -l /bin/zsh/google-cloud-sdk/lib/surface/notebooks/environments/__init__.py | dad9f635bf941599a6342ab5848568562a9de4d2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sudocams/tech-club | 1f2d74c4aedde18853c2b4b729ff3ca5908e76a5 | c8540954b11a6fd838427e959e38965a084b2a4c | refs/heads/master | 2021-07-15T03:04:40.397799 | 2020-12-01T20:05:55 | 2020-12-01T20:05:55 | 245,985,795 | 0 | 1 | null | 2021-04-30T21:04:39 | 2020-03-09T08:51:41 | Python | UTF-8 | Python | false | false | 986 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"yogocamlus@gmail.com"
] | yogocamlus@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.