blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dff0faa0489696fca7561a52f1eed242eed66498 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/mixedreality/azure-mixedreality-authentication/tests/test_static_access_token_credential_async.py | f9b7171460fd4f5c33b8e663c249d8255f338ad3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 933 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from azur... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
7944dbc113b7f3dbd221b524d325116a297c83f5 | f640fcb49bf99ebec5f34603748121fbbe9171dc | /lib_openshift/models/v1_image_change_trigger.py | b8b6b0fc4058951c8cd4fd60243032141171ce3b | [] | no_license | tbielawa/lib_openshift | bea8a11c4904a7d6c815abdd2b206de5a4cc7a93 | 34ca0f6a0c5388624a040223f29552dc4c0f8c49 | refs/heads/master | 2023-06-16T22:41:15.894021 | 2016-07-11T21:26:59 | 2016-07-11T21:26:59 | 63,156,531 | 0 | 0 | null | 2016-07-12T12:35:29 | 2016-07-12T12:35:29 | null | UTF-8 | Python | false | false | 4,909 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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... | [
"jdetiber@redhat.com"
] | jdetiber@redhat.com |
7065790d2280e02944b4499fb05d3b4af79dbde3 | ce18877752c43eb66f03bdc169e3ef45a1720d15 | /src/apps/shop/__init__.py | e929914882f6d6647c0575acdfc548c0d37f700c | [] | no_license | ajlexgit/robin | 26e8682ae09795acf0f3fc1297d20044285b83df | 25ac1c3455838fc26656cfa16d05b2943d0cbba6 | refs/heads/master | 2021-07-13T22:49:09.177207 | 2017-10-13T07:44:42 | 2017-10-13T07:44:42 | 103,655,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | """
Интернет-магазин с корзиной в localStorage и сессии.
Установка:
settings.py:
INSTALLED_APPS = (
...
'mptt',
'shop',
...
)
SUIT_CONFIG = {
...
{
'a... | [
"pix666@ya.ru"
] | pix666@ya.ru |
8e8a7aaabbfac8bdccff57b2331e7edeaf82e5b9 | 9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d | /python/DistrictUserUploadTask/main.py | 21fca594a2a3b2985d5fe605991b29340f8573b3 | [] | no_license | apollowesley/Demo | f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8 | 471c4af95d3a7222d6933afc571a8e52e8fe4aee | refs/heads/master | 2021-02-15T04:01:51.590697 | 2018-01-29T01:44:29 | 2018-01-29T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,274 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import logging
import logging.config
import ConfigParser
import string
import os
import sys
import re
import getpass
from task import UploadTask
# 日志
logging.config.fileConfig("./log.conf")
logger = logging.getLogger("example01")
# 获取配置信息
def load_config():
mysql ... | [
"36821277@qq.com"
] | 36821277@qq.com |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
19078666f52c0a258fbe2e96b9bbd9da7c8386df | 65485cb1233e59b21dd5c5349cc88a015ad52661 | /ecommerce/store/admin.py | 39642d3a049ee140025f0b9107ed07f2c0ab8b88 | [] | no_license | danielmichaels/django-projects | 966929f889c4e31508b6bbcb728ef02f00549f0b | dc8ca4b9ca788dea6388b434e9d7744e1500128f | refs/heads/master | 2022-12-25T18:50:48.192647 | 2020-10-07T00:45:13 | 2020-10-07T00:45:13 | 289,652,384 | 0 | 0 | null | 2020-10-07T00:45:14 | 2020-08-23T09:13:00 | Python | UTF-8 | Python | false | false | 262 | py | from django.contrib import admin
from .models import Product, Order, OrderItem, Customer, ShippingAddress
admin.site.register(Product)
admin.site.register(OrderItem)
admin.site.register(Order)
admin.site.register(Customer)
admin.site.register(ShippingAddress)
| [
"dans.address@outlook.com"
] | dans.address@outlook.com |
a0b6217aff8ab3fd4a1a3074a6882d2a1be08888 | ac235a23f22be0d6f1818bb53902177f9969813a | /benchmarks/base/run.py | e2c0dda98b3f5b281160157a52897c485b5be00c | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | DataDog/dd-trace-py | f09d6d48c4c69aea68f999fc8a458ade5c6150cf | 1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17 | refs/heads/1.x | 2023-09-01T20:25:26.746324 | 2023-09-01T18:54:37 | 2023-09-01T18:54:37 | 61,572,326 | 461 | 426 | NOASSERTION | 2023-09-14T20:38:57 | 2016-06-20T18:52:23 | Python | UTF-8 | Python | false | false | 993 | py | #!/usr/bin/env python3
import os
import subprocess
import sys
import yaml
def read_config(path):
with open(path, "r") as fp:
return yaml.load(fp, Loader=yaml.FullLoader)
def run(scenario_py, cname, cvars, output_dir):
cmd = [
"python",
scenario_py,
# necessary to copy PYTHO... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
71ea6cbad24da6e055d2aa9a4b7228bb842df0dd | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/services/mobile_app_category_constant_service_client_config.py | 1f790391c546b7cd2eddb5721b1b18609c8d5f0c | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 837 | py | config = {
"interfaces": {
"google.ads.googleads.v4.services.MobileAppCategoryConstantService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
},
"retry_params": {
"default": {
"initial_r... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
30f1f2705332c4549d124f51b50b3a9a72acb8d7 | 05c5f5bbc2ddfa850d4ae28148f176c5d63a4a7b | /tbkt/apps/sx_normal/urls.py | db94b6c0aa22cb4c88965821420b3e9b7610328a | [] | no_license | GUAN-YE/hd_api_djs | f7234643c06f47c03c348c7740266d45989c5e77 | 1f08cbfccc1ae2123d92670c0afed9b59ae645b8 | refs/heads/master | 2020-03-25T02:32:03.613535 | 2018-08-02T12:52:45 | 2018-08-02T12:52:45 | 143,294,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # coding:utf-8
"""
2017数学常态活动
映射路径
"""
from django.conf.urls import url
from stu import views as stu_views
import views as com_views
# 学生
urlpatterns = [
url(r'stu/sign$', stu_views.r_sign), # 签到
url(r'stu/share$', stu_views.r_share), # 分享
]
# 活动公用方法
urlpatterns += [
... | [
"15670549987@163.com"
] | 15670549987@163.com |
78bb32bf7c2e23216cb019c336e44b0b0ba11969 | 97c37b210fad85895f35b7db183a52cf6c37504f | /webhook.py | 1f1c1aaeea9975e4e4de3c8e1b1c17e5a5454547 | [] | no_license | polakowo/py-webhook | 9762b4c810f6cc81d73e0451f298070354102f5a | ee1c38b0ceccdc056fcf121ca45d5c7949ac7075 | refs/heads/master | 2021-01-23T23:53:11.194683 | 2018-02-24T14:10:20 | 2018-02-24T14:10:20 | 122,743,148 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python3
from http.server import BaseHTTPRequestHandler, HTTPServer
hostName = ""
hostPort = 8555
def execute():
print("Script is being executed")
import subprocess
subprocess.call(['sh', './script.sh'])
class MyServer(BaseHTTPRequestHandler):
def do_POST(self):
print("Reques... | [
"olegpolakow@gmail.com"
] | olegpolakow@gmail.com |
2993e71ab0448d4ec4870ceb291435ef26e334d5 | 63ace5832d453e325681d02f6496a0999b72edcb | /examples/bip38_ec.py | c454a9f615016da836de3cf8a3ab9a067af476d8 | [
"MIT"
] | permissive | ebellocchia/bip_utils | c9ec04c687f4247e57434319e36b2abab78f0b32 | d15c75ddd74e4838c396a0d036ef6faf11b06a4b | refs/heads/master | 2023-09-01T13:38:55.567370 | 2023-08-16T17:04:14 | 2023-08-16T17:04:14 | 251,130,186 | 244 | 88 | MIT | 2023-08-23T13:46:19 | 2020-03-29T20:42:48 | Python | UTF-8 | Python | false | false | 2,472 | py | """Example of private key encryption/decryption with EC multiplication using BIP38."""
import binascii
from bip_utils import Bip38Decrypter, Bip38EcKeysGenerator, Bip38Encrypter, Bip38PubKeyModes, WifEncoder
# BIP38 passphrase
passphrase = "DummyPassphrase"
# Generate an intermediate passphrase without lot and seq... | [
"54482000+ebellocchia@users.noreply.github.com"
] | 54482000+ebellocchia@users.noreply.github.com |
bd9959ca27e75ccb48e9805f865384b753390f96 | d35a60fd5242080d87c6408f8f9c2f087c754883 | /server/serverWithDraw.py | 57c22bdc885c0a16c0880c4ae4dfa2911fc17245 | [] | no_license | zhengchengyy/BBDetection | 765bfab717760f319568b991fb38ede64e626629 | 0aa192437dc5cf7526dcceab993a710b712933f7 | refs/heads/master | 2020-04-01T08:34:45.658324 | 2019-11-14T12:47:17 | 2019-11-14T12:47:17 | 153,037,386 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,923 | py | import pyformulas as pf
import threading
import socketserver
import os
import matplotlib.pyplot as plt
import numpy as np
# configurate the figure
import matplotlib as mpl
mpl.rc('lines', linewidth=1, color='r', linestyle='-')
plt.rcParams['figure.figsize'] = (10.0, 6.0)
class PlotThread(threading.Thread):
def ... | [
"zhengchengyy@qq.com"
] | zhengchengyy@qq.com |
52b05d3878abcb4c78e0e865d6199cb611986340 | 891127dfec1e5255cd403f4aedbe0ef18b5c8567 | /python-notify2/lilac.py | 8678e267dc883732492e08565ebc85e226202699 | [] | no_license | kktt007/repo | df708b5841474fbbf720994f9278a906a908b63b | fc039d08425081834384f84c8ffe9d3923849165 | refs/heads/master | 2020-04-03T06:03:10.517303 | 2018-10-28T11:23:08 | 2018-10-28T11:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/env python3
#
# This file is the most simple lilac.py file,
# and it suits for most packages in AUR.
#
from lilaclib import *
build_prefix = 'extra-x86_64'
post_build = aur_post_build
def pre_build():
aur_pre_build()
need_rebuild = False
for line in edit_file('PKGBUILD'):
# edit PKGB... | [
"farseerfc@gmail.com"
] | farseerfc@gmail.com |
ca5216e0c168037fe25b76c19ba7275392c36af3 | f41bd639f249ef6029e310bee84c6ef03f5d6f19 | /databundles/database/__init__.py | 8a086a851a744ff6f4b771d0f9f09df297feec4a | [] | no_license | kball/databundles | 5e3d478c1977a0481d77131dd573c8f199e2c95d | 142f20705c8be6cb136adef3a94c8fa7b7119b88 | refs/heads/master | 2021-01-21T03:30:32.822333 | 2014-01-23T23:57:57 | 2014-01-23T23:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | """
Copyright (c) 2013 Clarinova. This file is licensed under the terms of the
Revised BSD License, included in this distribution as LICENSE.txt
"""
from __future__ import absolute_import
from ..dbexceptions import ConfigurationError
from collections import namedtuple
def new_database(config, bundle=None, class_=None... | [
"eric@clarinova.com"
] | eric@clarinova.com |
eca77010769b565283b9e1d850d441836c5dc8f3 | 990b92264109dc01dbfddeb6f5e75675037fd829 | /app/cito_engine/poller/pluginpoller.py | 123be6b2b244c4a01e2c2503321bc5c5146f53f8 | [
"Apache-2.0"
] | permissive | CitoEngine/cito_engine | 20efa189abab1b684b60b260c1ea9ed16f6ea0f2 | 95852dd109d86a344726d7b11ed1132d4e48426b | refs/heads/master | 2020-05-21T15:04:24.011603 | 2019-02-08T04:51:42 | 2019-02-08T04:51:42 | 17,123,947 | 9 | 13 | Apache-2.0 | 2019-02-08T04:51:43 | 2014-02-24T03:17:04 | Python | UTF-8 | Python | false | false | 3,548 | py | # Django settings for cito project.
# Copyright (c) 2012-2013 Cyrus Dasadia <cyrus@extremeunix.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without li... | [
"cyrus@extremeunix.com"
] | cyrus@extremeunix.com |
0da2a858c8b43266110789edbbd9fbfc44c0485f | 0ca9e6a6fa9a05231d2248e9991c50d74173e546 | /B0_CNN-RNN-text/predict2.py | d19a91c2ae46186a8cd09254b83dc0537f1e4037 | [] | no_license | Timaos123/LogstashAI | 8aa07b74c0bfd46ab9bd4ff6b10549057e36c477 | 0b9ec6a27ebc07584503dc69e29475e98ebc102b | refs/heads/master | 2020-04-02T14:34:48.648972 | 2018-10-24T16:44:41 | 2018-10-24T16:44:41 | 154,530,107 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,365 | py | import os
import sys
import json
import shutil
import pickle
import logging
import data_helper
import numpy as np
import pandas as pd
import tensorflow as tf
from text_cnn_rnn import TextCNNRNN
logging.getLogger().setLevel(logging.INFO)
def load_trained_params(trained_dir):
params = json.loads(open(trained_dir + 'tr... | [
"noreply@github.com"
] | Timaos123.noreply@github.com |
25d5fc581028991eafab2166d9a68b78fd919440 | 9de28c08400250025f4bdc5676bac3b82f4a404d | /Unified/assignSchema.py | fb2db6eb24f398dbbfc3540c186ddfbc2babaa93 | [] | no_license | AndrewLevin/WmAgentScripts | f4b8edb6b668d128e12d55b396c67f9efb727e6f | 4eab70df00d7a314a4d7d115e1eb0dbdac823165 | refs/heads/master | 2020-12-31T03:35:14.564731 | 2016-12-06T20:37:51 | 2016-12-06T20:37:51 | 14,967,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | import os
import sys
from sqlalchemy import Column, ForeignKey, Integer, String, PickleType, Float
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
Base = declarative_base()
#class McMID(Base):
# __tablename__ = 'mcm'
# id = Col... | [
"vlimant@cern.ch"
] | vlimant@cern.ch |
89d42651a7c265a1445be2fc09631bf0afbe9c41 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02818/s265134890.py | 8482530bc7f94733b76388fa8ccee8aa0e5fd826 | [] | 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 | 679 | py | #!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys
INF = float('inf')
def solve(A: int, B: int, K: int):
return f'{max(A-K,0)} {max(B-max(0,K-A),0)}'
def main():
sys.setrecurs... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9d871e6ca56da43854bf44e0d344e875c0c9981e | 2ed4ed28dc150a96954c663f203808ba917712c8 | /learning_site/tracks/views.py | e6c04e087c767566263f7b3f4718117d88d2d770 | [] | no_license | Mostacosta/Mosta-learning-website | 66e813c6fe17b018d750ffa824df751428a20ce8 | a70e94649355e07a5d819e75b09100f7dc5ccc59 | refs/heads/master | 2022-04-01T17:36:23.084318 | 2020-02-04T08:56:37 | 2020-02-04T08:56:37 | 200,877,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,211 | py | from django.shortcuts import render
from django.http import HttpResponse,JsonResponse
from .models import track,course,lesson,exam,exam_result
from questions.models import question ,answer
from questions.forms import question_form
from datetime import datetime
import dateutil.parser
from django.utils import timezone
fr... | [
"mostafaelhassan910@gmail.com"
] | mostafaelhassan910@gmail.com |
df3a6464a3e0334638d68082c12f2f987f3ce943 | be1b836b022a52204bc862878ba8d7a9200bd59b | /website/unicode/create_json.py | afea12542356f37620cc445dfd70b497d34b720d | [
"MIT"
] | permissive | templateK/write-math | b418e7c40a59ce2e673f5804b1c042acd8eb527b | ece645f70341431ac7ca14740ce26ad8153a3900 | refs/heads/master | 2021-01-18T21:48:14.725324 | 2016-05-17T17:57:22 | 2016-05-17T17:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python
"""
Create a json file which maps unicode decimal codepoints to descriptions.
https://github.com/w3c/xml-entities is used for that.
"""
import json
data = {}
import xml.etree.ElementTree
e = xml.etree.ElementTree.parse('xml-entities/unicode.xml').getroot()
for atype in e.findall('charlist'):
... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
f0ed3ca2be636e6ff87f3318f3e243f68762b6f4 | 4bc24011c65cb5194eb94abfd8d394a6b0dc6a50 | /packages/OpenCV/nodes/OpenCV___BilateralFilter0/OpenCV___BilateralFilter0.py | 6f78c7fc2a7dc5946060fcc88fa05dad405492c9 | [
"MIT"
] | permissive | ManojKumarTiwari/Ryven | 6c76ebdf89599bb7c9b4ce020f195eea135d9da1 | 2b8ef0bdcf05a458a6cf8791cbc2fda6870932f8 | refs/heads/master | 2022-11-12T00:23:45.303378 | 2020-07-08T09:32:10 | 2020-07-08T09:32:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | from custom_src.NodeInstance import NodeInstance
from custom_src.Node import Node
from custom_src.retain import m
import cv2
# USEFUL
# self.input(index) <- access to input data
# self.outputs[index].set_val(val) <- set output data port value
# self.main_widget <- access to m... | [
"leon.thomm@gmx.de"
] | leon.thomm@gmx.de |
49aad707822cea050e45c3f070042ccf5c2f2dba | a8123a86db99b9365b10ba76dd509d58caa7bc10 | /python/practice/start_again/2020/11032020/Assesment6.py | c505235f1844afeeb02c99144c972776b142ec93 | [] | no_license | smohapatra1/scripting | c0404081da8a10e92e7c7baa8b540acc16540e77 | 3628c9109204ad98231ae8ee92b6bfa6b27e93cd | refs/heads/master | 2023-08-22T20:49:50.156979 | 2023-08-22T20:43:03 | 2023-08-22T20:43:03 | 147,619,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | #Use List Comprehension to create a list of the first letters of every word in the string below:
st = 'Create a list of the first letters of every word in this string'
mylist=[w[0] for w in st.split()]
print (mylist) | [
"samarendra.mohapatra121@gmail.com"
] | samarendra.mohapatra121@gmail.com |
4e8b7d7b60995bf843c9a4de85b38976e365d990 | 84a1f9d626828b6ecaee4ef037081f4d8750a990 | /编程/4月/4.13/test_survey.py | 9c1c877c16243557dde6b28b5c1afc599957f8ed | [] | no_license | dujiaojingyu/Personal-programming-exercises | 5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04 | 72a432c22b52cae3749e2c18cc4244bd5e831f64 | refs/heads/master | 2020-03-25T17:36:40.734446 | 2018-10-01T01:47:36 | 2018-10-01T01:47:36 | 143,986,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | __author__ = "Narwhale"
# import unittest
# from survey import AnonymousSurvey
#
# class TestAnonymousSurvey(unittest.TestCase):
# '''测试survey.py'''
# def test_store_single_response(self):
# '''测试单个答案会不会妥善储存'''
# question = "What langage did you first learn to speak?"
# my_survey = Anon... | [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
c0ca10e6617bcc841033face0deb5832c499e704 | 3de69270140c915a71611b07f9e5ae7e0ba5d3e6 | /hedgehog/__init__.py | af439387011fcc89560aa07bba8500c8a529cdb3 | [
"MIT"
] | permissive | dongyu1990/hedgehog | f66380f77751d2dd6dc8d888ed4634d3cc8d9225 | 98c97d0c70b4aa01b0bfb1115a1dfbe18f976ae9 | refs/heads/master | 2022-09-15T14:21:15.701239 | 2020-05-31T13:12:40 | 2020-05-31T13:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import os
from .bayes_net import BayesNet
from .examples import load_alarm
from .examples import load_asia
from .examples import load_grades
from .examples import load_sprinkler
__all__ = [
'BayesNet',
'load_alarm',
'load_asia',
'load_grades',
'load_sprinkler'
]
def cli_hook():
here = os.pa... | [
"maxhalford25@gmail.com"
] | maxhalford25@gmail.com |
f2a49225a1fc85adf7640b670ac6c14374ae7785 | 280342a3961132a6f62507e17cb0dadf3598f2ea | /models/extends_financiera_prestamo_cuota.py | 96a9a2953247b4107c7c846ec38bf120d3c9ebfe | [] | no_license | levislibra/financiera_pagos_360 | 5e8f6f2fe43311ea3b918daff359ec126ecadc0b | 4881773281e970ff23c3c9e913ee0a5260e91502 | refs/heads/master | 2023-07-06T01:09:20.089773 | 2023-06-21T14:57:10 | 2023-06-21T14:57:10 | 205,934,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api, _
from datetime import datetime, timedelta, date
PAGOS360_MONTO_MINIMO = 10
class ExtendsFinancieraPrestamoCuota(models.Model):
_inherit = 'financiera.prestamo.cuota'
_name = 'financiera.prestamo.cuota'
pagos_360_generar_pago_voluntario = fields.Bo... | [
"levislibra@hotmail.com"
] | levislibra@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.