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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffcb5dfd61b8ea8406307f4d49316125cb08366c | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc006/B/4249708.py | c209881efba18f1680c0d7282393670ecf313f49 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | N,x = map(int,input().split())
if x in (1, 2 * N - 1):
print('No')
exit()
print('Yes')
if N == 2 and x == 2:
l = [1, 2, 3]
print(*l, sep='\n')
elif x == 2:
l = [4, 1, 2, 3]
rest = list(range(5, 2 * N))
m = len(rest) // 2
l = rest[:m] + l + rest[m:]
print(*l, sep='\n')
e... | [
"[email protected]"
] | |
4be4119618f24eb4a854b957e68ff64726717d61 | c27a95964b2740e1ec681b7068f52fb573d90321 | /aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/QueryMetricListRequest.py | 56216712133c7d35673a04cf20349e748613f843 | [
"Apache-2.0"
] | permissive | mysshget/aliyun-openapi-python-sdk | 5cf0a0277cce9823966e93b875c23231d8b32c8a | 333cdd97c894fea6570983e97d2f6236841bc7d3 | refs/heads/master | 2020-03-17T23:07:02.942583 | 2018-05-17T09:50:53 | 2018-05-17T09:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | 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... | [
"[email protected]"
] | |
5b3a2e285dac25d8fbaf09b7b6ce6bb8623be7d1 | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /training/old/detr/eval_step.py | 14c769d423b9428725a45145e5fecae4336afb35 | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | import torch
import Utils.detr_misc as utils
from evaluation.evaluator.coco import CocoEvaluator
@torch.no_grad()
def evaluate(model, criterion, postprocessors, data_loader, base_ds, device, output_dir):
model.eval()
criterion.eval()
metric_logger = utils.MetricLogger(delimiter=" ")
metric_logger.ad... | [
"[email protected]"
] | |
5337ceda808da03a25bf931d536938d1881c73a9 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/azure/mgmt/paloaltonetworksngfw/aio/operations/_firewalls_operations.py | 8cc8d9e5ce7f000a913bdbed272f44375a317198 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 50,367 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"[email protected]"
] | |
4fee8226361947afb1ef025ada908dc3ad5f97a7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2526/48083/309473.py | a8d534b2af549d2506c477c229047c81420f23b7 | [] | 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 | 1,340 | py | from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def getAllElements(self, root1: TreeNode, root2: TreeNode) -> List[int]:
res = []
def inOrder(root):
if root:
... | [
"[email protected]"
] | |
6fb6e1524af5bc5732e4bc123217c972f05010a3 | cf9b83d667433a5f912f8981357483197624983d | /editors/content/admin.py | 75694e4aaca1e16700897e8f2668a55b4381efb9 | [
"Apache-2.0"
] | permissive | LeaseMagnetsTeam/editors.art | 08d13e58a17c9930efe78f99d4dc4e25898612f3 | 778ca76439da798f3b7ffbac5b83f3e85b4f4fca | refs/heads/main | 2023-06-26T17:17:52.336540 | 2021-07-26T00:09:30 | 2021-07-26T00:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.contrib import admin
from editors.content.models import Edit
admin.site.register(Edit)
| [
"[email protected]"
] | |
beb51d68a2bfda9d9043f37aca7dfab32345ec5d | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/blog/migrations/0011_auto_20200502_1924.py | cafdf11a5790066124e2ac11c41e6c0b8e07572d | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 612 | py | # Generated by Django 2.2.12 on 2020-05-02 17:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0010_auto_20200229_1600'),
]
operations = [
migrations.AlterField(
model_name='blogcover',
name='color',
... | [
"[email protected]"
] | |
2c8b29f4777567834b9d0affa686caba95f48ef3 | d1c29c9f06d56644ca2fb11fcff8c25703aced79 | /MMCG/make_plots.py | 891af441059f2c0d34f6177672eb9d172bde2fe6 | [] | no_license | jjhelmus/arm_vap_scripts | 4a3d7bbe9e277972312484fe46a35c92dae1c71c | 1d49d0e2f8affea11aabc000f74d8d1c4be75ef5 | refs/heads/master | 2021-01-22T05:24:35.935447 | 2013-04-12T14:38:31 | 2013-04-12T14:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import netCDF4
import pyart
# MMCG figure
dataset = netCDF4.Dataset('sgpcsaprmmcgi7.c0.20110520.110100.nc')
refl = dataset.variables['reflectivity_horizontal']
fig = plt.figure()
ax = fig.add_subplot(111)
ax.imshow(refl[0,4], origin='lower')
fig.savefig('mapped_fi... | [
"[email protected]"
] | |
0396eb254b1de5fa42497fb6a7b869393ca51085 | 29c58b3bec6ac0fcdb3070efc118600ee92004da | /test/test_unread_count.py | 42aeede4b08156288cd84090b1b6d8c211d1374e | [
"MIT"
] | permissive | mailslurp/mailslurp-client-python | a2b5a0545206714bd4462ae517f242852b52aaf9 | 5c9a7cfdd5ea8bf671928023e7263847353d92c4 | refs/heads/master | 2023-06-23T00:41:36.257212 | 2023-06-14T10:10:14 | 2023-06-14T10:10:14 | 204,662,133 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | # coding: utf-8
"""
MailSlurp API
MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://ww... | [
"[email protected]"
] | |
8979b51513153b74eb4a26efe75e95c67319ebef | 40b42ccf2b6959d6fce74509201781be96f04475 | /mmocr/models/textdet/necks/fpem_ffm.py | c98b43f1fc2642db598a0f9094b88e4851cc9e75 | [
"Apache-2.0"
] | permissive | xdxie/WordArt | 2f1414d8e4edaa89333353d0b28e5096e1f87263 | 89bf8a218881b250d0ead7a0287526c69586c92a | refs/heads/main | 2023-05-23T02:04:22.185386 | 2023-03-06T11:51:43 | 2023-03-06T11:51:43 | 515,485,694 | 106 | 12 | null | null | null | null | UTF-8 | Python | false | false | 5,999 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch.nn.functional as F
from mmcv.runner import BaseModule, ModuleList
from torch import nn
from mmocr.models.builder import NECKS
class FPEM(BaseModule):
"""FPN-like feature fusion module in PANet.
Args:
in_channels (int): Number of input chan... | [
"[email protected]"
] | |
3652511f4a3c2e9b77748a3cf8132b152949bf44 | ffe4c155e228f1d3bcb3ff35265bb727c684ec1a | /Codes/Quiz/number_of_factors.py | 68ce727aa40589c018b92480a89b9de9e4e47ed7 | [] | no_license | yuuee-www/Python-Learning | 848407aba39970e7e0058a4adb09dd35818c1d54 | 2964c9144844aed576ea527acedf1a465e9a8664 | refs/heads/master | 2023-03-12T00:55:06.034328 | 2021-02-28T13:43:14 | 2021-02-28T13:43:14 | 339,406,816 | 0 | 0 | null | 2021-02-28T11:27:40 | 2021-02-16T13:26:46 | Jupyter Notebook | UTF-8 | Python | false | false | 269 | py | def numberOfFactors(num):
ans = 1
x = 2
while x * x <= num:
cnt = 1
while num % x == 0:
cnt += 1
num /= x
ans = cnt
x += 1
return ans * (1 + (num > 1))
n = int(input())
print(numberOfFactors(n))
| [
"[email protected]"
] | |
0b8609103dd7f8a320e1b62047793f8513669fc7 | 0d247fea57ee40717166b1ff753fd626092e9e78 | /tests/test_completer.py | 279b880925ed77714e3e343298ac7a331f4a7706 | [] | no_license | sean-heller/dockercli | 362ff0310992b2257ed20077b76245729ca2a227 | ab9ca8f13d01a5d8c5d3f58743c476836b06d186 | refs/heads/master | 2021-05-29T07:27:33.954752 | 2015-07-20T16:21:09 | 2015-07-20T16:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,645 | py | from __future__ import unicode_literals
import pytest
from prompt_toolkit.completion import Completion
from prompt_toolkit.document import Document
from dockercli.options import all_options
from dockercli.options import COMMAND_NAMES
@pytest.fixture
def completer():
import dockercli.completer as cmp
return c... | [
"[email protected]"
] | |
876d42eca7d958444943cfd5e550208f8781fe15 | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/cpython/test_copy_reg.py | 2f49eb711e1c3c92f0d6818c85ca52b10e5eb43c | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 44 | py | ../../from_cpython/Lib/test/test_copy_reg.py | [
"[email protected]"
] | |
23b8ea48b8dcdfd520fd983a55990ac4992ded00 | 4017add8fa767cf2eca9163791aa65ee77c67a07 | /code/gradient_descent/first.py | 2a722d65bc85c82cd02c686f9e1e382f1907852a | [] | no_license | ducksfrogs/numpy_data_ana | 00c0928f2ddc7a8ad0ea9ecdefa3815a8d880969 | 9d89bc377a3015c19c74f6b5aa500f2f2f08cdb1 | refs/heads/master | 2022-10-19T22:37:10.314453 | 2020-06-09T00:05:23 | 2020-06-09T00:05:23 | 268,383,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.datasets import load_boston
dataset = load_boston()
samples, label, feature_names = dataset.data, dataset.target, dataset.feature_names
bostondf = pd.DataFrame(dataset.data)
bostondf.columns = dataset.feature_names
bostondf['Target pr... | [
"[email protected]"
] | |
c79e23af4259ba1c22d26c8aa3efba74db913669 | 3fb24e6505ffdc3a3961c467bc54ba7c0b526454 | /gravityRK4_resized.py | bb4decb7fef61bfc5574688ebcdd950f6745dc2a | [
"MIT"
] | permissive | martinohanlon/minecraft-planets | 8d76018cb1dc4154becf9ec836f1e00488673b9e | c7017eb9be6260c8c664891a77063305ac97ae57 | refs/heads/master | 2020-06-02T07:50:33.539646 | 2013-03-07T21:19:43 | 2013-03-07T21:19:43 | 8,636,766 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,722 | py | #!/usr/bin/env python
"""
An improved version of my Python-based gravity simulator, using Runge-Kutta
4th order solution of the differential equations - coded during Xmas 2012.
Happy holidays, everyone!
I've always been fascinated by space - ever since I read 'The Family of
the Sun', when I was young. And I always wan... | [
"[email protected]"
] | |
8526d76d462eb31cb9b6edae46331fdb9552850a | 7a5b729a660a35d0d80c9836202025a719f026fb | /general codes/mod10_10.py | 8c80260bc5a7216f6b44eceaaa9cf816b84db9ad | [] | no_license | Harshit2009/My-Programs- | 7a05eb3369b98010805752a0234867b726c4ac0e | 1ac60faeb0ba514f2c35bcb82be43654b5cef785 | refs/heads/master | 2023-01-13T18:58:26.088714 | 2020-11-19T08:31:43 | 2020-11-19T08:31:43 | 269,538,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | import mod10
mod10.mod10(0,1,10)
| [
"[email protected]"
] | |
fda009d969b4c11b4518f554302e60e88490b46b | 0f09759025db447fe63b3af0af80c3e31e2a887f | /scripts/cell/taskScripts/Bangzhushenmiren.py | 06b8d8ab06630b18f47c4ebd930e3d56d5de5726 | [] | no_license | jevonhuang/huanhuoserver | d7db1cd4c67d8be2da4dc9ec84ef8f23e891c537 | caa8a87cd303b4d0368a0a6397fc1d47685c3bc3 | refs/heads/master | 2020-12-07T16:47:40.668507 | 2018-04-02T10:12:01 | 2018-04-02T10:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *
class Bangzhushenmiren(object):
def __init__(self, owner, selfIndex, npcName, npcTaskIndex):
DEBUG_MSG("Bangzhushenmiren:__init__")
self.owner = owner
self.selfIndex = selfIndex
self.npcName = npcName
self.npcTa... | [
"[email protected]"
] | |
1c725c18b3b21a31f7fe5dc8cf9f9f4b63fdd24b | fd6747673bad3628eba33d3892b63180db5fb044 | /tensorflow/compiler/xla/python/xla_extension/__init__.pyi | 61d1e478c9013a9376efd36b851a37e6b8793772 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | gautam1858/tensorflow | 2cbdc251a470eefd27ce31fd4e6fe31253e9d07a | bd56b0b3a00432896cffbb412bedbb13579ec598 | refs/heads/master | 2022-06-04T22:09:41.533559 | 2022-05-10T15:51:20 | 2022-05-10T15:51:20 | 59,177,861 | 2 | 0 | Apache-2.0 | 2022-03-17T14:48:17 | 2016-05-19T05:56:42 | C++ | UTF-8 | Python | false | false | 16,725 | pyi | # Copyright 2021 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... | [
"[email protected]"
] | |
22a0efd61428ca996199ba140cb48190c54006e0 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/bfi.py | e4c0d8a77b1235838847b5ced1684c62c97867da | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
2947dd334a9962628fbd6ad140d2c25e8e572f97 | ba54b70f93fe7f9d114623d76b1ad3f88309d66f | /main/views/public.py | 2b2679a267e16f85bdc1a067bb156f7ebb7f755b | [] | no_license | loobinsk/newprj | 9769b2f26092ce7dd8612fce37adebb307b01b8b | c6aa6a46973fb46375f4b05a86fe76207a8ae16d | refs/heads/master | 2023-05-07T00:28:44.242163 | 2021-05-25T08:22:05 | 2021-05-25T08:22:05 | 370,617,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,630 | py | #-*- coding: utf-8 -*-
from registration.backends.default.views import RegistrationView
from main.form import RegisterForm, AuthForm, FeedbackForm, ReclameForm
from django.views.generic import View, TemplateView, FormView
from django.contrib.auth.views import login, logout
from main.models import Company, Advert, Tarif... | [
"[email protected]"
] | |
f434d074c2a942412002f5c9efc9a15c033dacc0 | 5472a3f913e1a6698b9dab902545f0ba02e7a02e | /pbay_url.py | 30c40f18b360964362158d06ed0107620e90d399 | [] | no_license | Arrowheadahp/piratebay-search-and-download | bf38956588ce6da8caf25cec653bec76409cfd79 | 0fe8db913215e4a0b00a9153e7085728e7d3ecf7 | refs/heads/master | 2020-05-31T05:56:18.592671 | 2019-07-20T06:15:26 | 2019-07-20T06:15:26 | 190,131,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
import webbrowser
def soupcreate(url):
req = Request(url, headers={'User-Agent': 'Mozilla/5.0'})
webpage = urlopen(req).read()
#print ('url page read')
return(BeautifulSoup(webpage,features="lxml"))
def geturl():
proxylist... | [
"[email protected]"
] | |
8d704be2ad0bccea7611b5a9eac75d47a7e74899 | f448b9635d076d88a4439e937eec7dd050cc316a | /xx.py | 6a1bcaeeb2767fb3a0468cbdf1fb2786afa1066f | [] | no_license | udaytejam/practicesamples | c7e6ba2e30f52138b3b22414c57ddc1f9e94162a | acda24dfe5c3aff60b688c9b434b83a3132b0af1 | refs/heads/master | 2021-01-10T02:03:51.456102 | 2015-10-05T11:23:42 | 2015-10-05T11:23:42 | 43,500,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | globvar = 10
def read1():
print(globvar)
def write1():
global globvar
globvar = 5
def write2():
globvar = 15
read1()
write1()
read1()
write2()
read1() | [
"[email protected]"
] | |
5253d398213d1c154ea2dffba964210fbf476c74 | e33ecdb112045327344dce2ae8b0612848938f24 | /cotidia/socialshare/conf.py | 1e7d660917e60fb666ce61f86598c24b02e1edef | [
"BSD-3-Clause"
] | permissive | guillaumepiot/cotidia-social-share | 939125b97474bb34e8a94cd0fa6d6919026c029c | 9c926bb86e7f158f2b59eaddcf09eba459c009b6 | refs/heads/master | 2020-04-21T07:28:24.520846 | 2019-03-26T14:00:00 | 2019-03-26T14:00:00 | 169,393,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.conf import settings
from appconf import AppConf
class SocialShareConf(AppConf):
FACEBOOK_APP_ID = "[Not implemented]"
class Meta:
prefix = 'socialshare'
| [
"[email protected]"
] | |
072d371ce95370c4977fcc64b3a3e77c06ca6c30 | 5f07c38899e350b0b776510fd7d7831d44cf1404 | /drfmixins/drfmixins/settings.py | d599783f7b76ad7f17b66c1c6fd0e90c0991e475 | [] | no_license | shubham454/Django-Rest | b733f1d47ada9df452e912dcd8acad48a7ec4c75 | 3d94f57cab3537c51caa68807d5fcdf8883d2d2c | refs/heads/master | 2022-12-14T20:37:11.835794 | 2020-08-13T18:43:26 | 2020-08-13T18:43:26 | 287,354,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | """
Django settings for drfmixins project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"[email protected]"
] | |
9f25d416bd468bb65eb3923ab99d32b912f60ca7 | 3e85618c79a1a934fec543e1327e772ca081a5b9 | /N1949.py | 2c0945dcd3d845154cc7480e681a4eb6834ef180 | [] | no_license | ghdus4185/SWEXPERT | 72d79aa4a668452327a676a644b952bab191c79b | 4dc74ad74df7837450de4ce55526dac7760ce738 | refs/heads/master | 2020-07-16T18:31:22.153239 | 2019-12-20T04:18:30 | 2019-12-20T04:18:30 | 205,843,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import sys
sys.stdin = open('sample_input.txt', 'r')
# 가장 높은 봉우리를 찾아야한다
# 내 주변을 선택할 때 나보다 낮은 얘들을 선택하거나 한번 깎아서 선택할 수 있다.
# 이후에 깎는게 더 유리할 수 있으므로
# 1) 낮은 칸으로 이동해보기
# 2) 높거나 같은 칸에 대해서 2가지 선택 깍는다 or 깍지않는다.
# 3) 깍아서 지나갈 수 있는 상황이라면 굳이 많이 깍지 않고 딱 나보다 작은 정도만
# 깍는다.
def f(i, j, c, e): # c : 깍는 횟수, e : 이동거리
di = [0, 1, 0, -1... | [
"[email protected]"
] | |
b1532dca490f5b992fcd2d4448901b761f3b2807 | 025dc1fa797b0de25b556365d23bddb848ab8ce0 | /colossus/apps/lists/mixins.py | ec6726113587e1a0aef7d4b9d7aedb437406729a | [
"MIT"
] | permissive | ramanaditya/colossus | eab49ec33031b8542b07e3aaebc36467a97786d6 | 11b34a216b2021a5da79cd6e347aef842f7b0c72 | refs/heads/master | 2023-03-30T12:39:12.948490 | 2021-03-25T17:11:32 | 2021-03-25T17:11:32 | 340,977,981 | 1 | 0 | MIT | 2021-03-25T16:34:54 | 2021-02-21T18:51:05 | Python | UTF-8 | Python | false | false | 1,295 | py | from django.http import Http404
from django.shortcuts import get_object_or_404
from django.views.generic.base import ContextMixin
from colossus.apps.subscribers.constants import TemplateKeys
from colossus.apps.subscribers.models import SubscriptionFormTemplate
from .models import MailingList
class MailingListMixin(... | [
"[email protected]"
] | |
2d25948fc47ae05e17ec0c8404dc6012cc0a51f0 | f9c7969c8649c484f2460fb245a3d5bd6870fa5a | /ch07/exercises/exercise 35.py | 85def5a86980f358fd4a9a1b39f5216c13556056 | [] | no_license | Pshypher/tpocup | 78cf97d51259bfea944dc205b9644bb1ae4ab367 | b05b05728713637b1976a8203c2c97dbbfbb6a94 | refs/heads/master | 2022-05-18T13:11:31.417205 | 2020-01-07T13:50:06 | 2020-01-07T13:50:06 | 260,133,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Unless stated otherwise, variables are assumed to be of the str data type
def reverse_string(S):
"""Return the string S in reverse order using a for loop."""
S_reverse = ""
for ch in S:
S_reverse = ch + S_reverse
return S_reverse
# Prompt user for a string
chars = input("Enter a sequence of... | [
"[email protected]"
] | |
2ca7726a97e24168ecf4147fb619ac3d3540182e | d1808d8cc5138489667b7845466f9c573591d372 | /notebooks/Reproducible Papers/Syngine_2016/figure_2_source_width.py | 7eb1deaeb1cbee060358396def82df02fcfa286e | [] | no_license | krischer/seismo_live | e140777900f6246a677bc28b6e68f0a168ec41ab | fcc615aee965bc297e8d53da5692abb2ecd6fd0c | refs/heads/master | 2021-10-20T22:17:42.276096 | 2019-11-27T23:21:16 | 2019-11-28T10:44:21 | 44,953,995 | 69 | 59 | null | 2020-05-22T11:00:52 | 2015-10-26T08:00:42 | Python | UTF-8 | Python | false | false | 5,880 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.2.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# + {"deletable": true, "editable": true, "cell_type": ... | [
"[email protected]"
] | |
6905fda86703d56d27ced0178a27ebf687bb1da0 | d18df0ec22dc766496d4b0c2dcdcc933bdf332d8 | /utils.py | f15c3122cd9f699a4a7cf4c18cdcaea62d5eff1b | [] | no_license | thanhlt998/tktdtt | edc6610a28e09482f0746db258eed5323636abaa | 64f32e62fb3b2d5d6ef6c2a0e74294bdff4b2057 | refs/heads/master | 2022-03-21T07:24:59.104986 | 2019-12-17T02:32:25 | 2019-12-17T02:32:25 | 208,956,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | from pyvi.ViTokenizer import ViTokenizer
import re
from dateutil.parser import parse
import json
def tokenize(terms):
terms = ViTokenizer.tokenize(terms)
terms = [f"\"{re.sub(r'_', ' ', term)}\"" for term in re.findall(r'\S+', terms)]
return ' '.join(terms)
def time_str2iso_format(time_str, is_24h_forma... | [
"[email protected]"
] | |
3abcc4770b5d3213f9bbe698c4fd2bd2e30bc2df | 015ce35e6344d1726173594ae509dfc1ca6f856d | /3-OOP and DSA/4-Recursion/Study/5-fibonichi.py | cd8fcc970c153783d338b2223d11fd4aeb930ddb | [] | no_license | ayman-elkassas/Python-Notebooks | 4af80df75c15a6ac3049450b3920d500fef0e581 | 26a8265f458c40ac22965d55722f32a650851683 | refs/heads/master | 2023-04-03T19:12:17.707673 | 2021-04-10T21:32:37 | 2021-04-10T21:32:37 | 356,699,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # Fn
# = F
# n−2 + Fn−1 for n > 1.
# import gzip
# gzip.GzipFile.readline(r"C:\Users\Ayman Elkassas\Desktop\dump.txt",)
def fib(n):
if n<=1:
return n
else:
return fib(n-1)+fib(n-2)
print(fib(5))
| [
"[email protected]"
] | |
7e5363f7bc158f952ae5fcf883d622a0fa2cd660 | 83ed8b754703a1c9e661c90f0763bfebbc0f2606 | /数据处理/计财Excel/excel_jicai.py | 35dffa6e8fac69b1cf98e1de6347fdde61ce573e | [] | no_license | zbh123/hobby | 4ce267a20e1af7f2accd2bde8d39af269efa319b | 2215c406fe7700bf150fd536dd56823a2e4733d1 | refs/heads/master | 2021-08-02T10:31:34.683391 | 2021-07-26T07:26:16 | 2021-07-26T07:26:16 | 150,555,879 | 4 | 0 | null | 2021-07-27T07:34:28 | 2018-09-27T08:41:44 | Python | UTF-8 | Python | false | false | 11,085 | py | #!python3
# -*- coding:utf-8 -*-
import re
from datetime import datetime, date
import xlrd, xlwt
import time
import os, sys
from xlutils.copy import copy
"""
股票质押明细表操作,
1,选取自有资金。
2,批注及备注中包含本月
3,提取字段
"""
def open_excel(excel_file):
"""
读取excel函数
args:excel_file(excel文件,目录在py文件同目录)
returns:boo... | [
"[email protected]"
] | |
6fc250290cd0b7389544fbe3a86bdc07265dc7d7 | 8eccc4cab7ba7292c932468163c711d4058e3b90 | /app/inheritance/abstract/migrations/0003_auto_20191223_0612.py | 5f9ce7809d3b1fe08e15168d3691200f35a33369 | [] | no_license | zehye/django-document-wps12 | 97b1aa4be5a56b949ba59ac92e8d0c5cb3e22f73 | 086fdc581ba3f2db7bc39a6eb906fd97cc61c415 | refs/heads/master | 2022-09-08T12:46:19.110011 | 2019-12-26T09:07:15 | 2019-12-26T09:07:15 | 228,784,564 | 0 | 0 | null | 2022-08-23T17:59:03 | 2019-12-18T07:37:14 | Python | UTF-8 | Python | false | false | 737 | py | # Generated by Django 3.0 on 2019-12-23 06:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('abstract', '0002_auto_20191223_0539'),
]
operations = [
migrations.AlterField(
model_name='childa... | [
"[email protected]"
] | |
08b1a08138cf2a9f104b5f00cfba5cf8fb7aaa24 | de6f57fa8391d447a50b1fe2f394cc2fc0488bfa | /BookMyShow/urls.py | 7470e069be75c7a4371b1370572efd74c250c991 | [] | no_license | himdhiman/BMS-2 | ce8db13d88dacd27b45757f5d30b78717041d0f8 | 440886028006211a1995f9d28d21fde9caf7fb0a | refs/heads/master | 2021-09-27T17:25:10.187898 | 2021-01-21T15:40:19 | 2021-01-21T15:40:19 | 205,708,449 | 1 | 0 | null | 2021-09-22T17:58:58 | 2019-09-01T17:16:10 | JavaScript | UTF-8 | Python | false | false | 1,031 | py | """BookMyShow URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"[email protected]"
] | |
10a6013dcc36183777720bbc2952c93d81e122df | 0f60e5a4bffa7372f6461aba4f0e58de4e3508bb | /Pandas/panda21.py | 00ddfd6fe203e441b705dfd802516e4eaf340740 | [] | no_license | akshatrastogi25/Python | 519130d6671438d20b0e6928e597e2b9c5bf722f | a3e8a1cbc96d09e4f8a6674c23c74074bfb65a9a | refs/heads/master | 2023-03-26T02:14:14.092925 | 2021-03-25T12:10:31 | 2021-03-25T12:10:31 | 286,788,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import pandas as pd
one = pd.DataFrame({
'Name': ['Alex', 'Amy', 'Allen', 'Alice', 'Ayoung'],
'subject_id':['sub1','sub2','sub4','sub6','sub5'],
'Marks_scored':[98,90,87,69,78]},
index=[1,2,3,4,5])
two = pd.DataFrame({
'Name': ['Billy', 'Brian', 'Bran', 'Bryce', 'Betty'],
'subject_id':['sub2','sub4'... | [
"[email protected]"
] | |
b8c70af9726a94eba9ac6a43188c0994be97dfcb | cdc9a8bc051be72de5bace23fd0637701d699da3 | /preprocess/create_stanford_labels.py | 880bf6d76e11854488987df9b35ea38a1836deac | [
"Apache-2.0"
] | permissive | marshuang80/pe-slice-finder | 4a51a8f7ef90f836d3cd5935f89a3e7f13c1fd63 | 2426a55c404e8eb694110351d604d6bdd613e5ae | refs/heads/master | 2022-12-29T02:20:42.135931 | 2020-10-13T04:16:47 | 2020-10-13T04:16:47 | 296,091,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | import os
import sys
sys.path.append(os.getcwd())
import h5py
import pickle
import argparse
import pandas as pd
from constants import *
from tqdm import tqdm
from collections import defaultdict
def main(args):
# create hdf5 file
hdf5_fh = h5py.File(args.hdf5_file, 'a')
slice_labels = pickle.load(open(ar... | [
"[email protected]"
] | |
2dd331830c8da0eca6ca46d05d214d1443501f2f | 4ede275efc8bc9f9ef121dc37215d2f0d8453e36 | /primer1.py | 20a96af89513d28f097429ac8bc17040ee3ff8f6 | [] | no_license | shanthivimalanataraajan01/code | bfa8a441b0c360aebd02248ad4433cc21889c3d2 | ea467ae1eefd68a5dceaa53aab7149d31bd5faf6 | refs/heads/master | 2020-04-15T05:01:03.625422 | 2019-05-17T09:35:45 | 2019-05-17T09:35:45 | 164,405,963 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | #vimala
#hi
m,n=map(int,input().split())
x=' '
for n in range(m+1,n):
if n>0:
for i in range(2,n):
if n%i==0:
break
else:
x=x+str(n)+' '
print(x.strip())
| [
"[email protected]"
] | |
670a9c4656b1ed4889e4390c5fe424466c8af425 | e7d65f8773a8c736fc9e41e843d7da6da5cc2e0b | /py3plex/algorithms/network_classification/PPR.py | 0339b2da13f9375d038028962e9f8485a7392e37 | [
"BSD-3-Clause"
] | permissive | hanbei969/Py3plex | 768e86b16ca00044fcb4188e01edf32c332c8a2a | 1ef3e0e6d468d24bd6e6aec3bd68f20b9d9686bb | refs/heads/master | 2021-01-03T18:19:24.049457 | 2020-02-12T16:51:14 | 2020-02-12T16:51:14 | 240,188,307 | 1 | 0 | BSD-3-Clause | 2020-02-13T05:57:16 | 2020-02-13T05:57:16 | null | UTF-8 | Python | false | false | 4,584 | py | ## set of routines for validation of the PPR-based classification
from ..node_ranking import *
from ..general.benchmark_classification import *
import pandas as pd
from sklearn.svm import SVC
from sklearn.metrics import f1_score
import time
import numpy as np
import multiprocessing as mp
from sklearn.model_selection i... | [
"[email protected]"
] | |
fbcf2f345a377b236e4d5dd331708ae9b0e6cc03 | 392a4f5c76414fcbed17dd5dccaf2f64096659a2 | /app_frame/page/market.py | 0630ce30172d3d8b20da2105324e02b39ca1bd86 | [] | no_license | Allison001/homework | 3bd5794c8bdd944f827f3e8008eea1831f90644b | 1ab910d21ad4348a212b226758cfa8244ea03bfc | refs/heads/master | 2023-04-08T22:48:56.667737 | 2021-04-15T03:38:56 | 2021-04-15T03:38:56 | 324,184,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | import yaml
from selenium.webdriver.common.by import By
from app_frame.basepage import BasePage
from app_frame.page.search import Search
class Market(BasePage):
def goto_search(self):
self.run_step('../page/market.yaml','goto_search')
# self.find_and_click((By.XPATH,"//*[@resource-id='com.xueqiu... | [
"[email protected]"
] | |
c7d2e24957a8f5d7a7276553f6d133a9933b2d8a | 385e00e3d48446baf20cb3d0fbf9db0344cd95da | /test/visualization/test_utils.py | 9e8a593f52ffbe911da59c3806471afc61755eca | [
"Apache-2.0"
] | permissive | oliverdial/qiskit-experiments | d670f9151116e2e7d9a67f304a23313aa31fc30f | a387675a3fe817cef05b968bbf3e05799a09aaae | refs/heads/main | 2023-06-24T08:07:19.505243 | 2023-06-09T21:01:59 | 2023-06-09T21:01:59 | 362,153,676 | 0 | 0 | Apache-2.0 | 2021-04-27T15:03:52 | 2021-04-27T15:03:51 | null | UTF-8 | Python | false | false | 4,818 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"[email protected]"
] | |
7736ed51fe1a1691133e354fb1c1d6372fd47acf | 4a238068e29a1f6871cc049a0486b20b27e781de | /Habana/benchmarks/resnet/implementations/resnet-tf-sys-420gh-tngr/TensorFlow/computer_vision/Resnets/utils/optimizers/keras/lars_optimizer.py | 4c64f2a9dc780522a575d18bc7c554999bcaf59b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Pixelz-Inc/training_results_v1.0 | 61b4555ad482b189d1966be3edd127858addd628 | c507130c4e04c1f274a9ae8b7284aac79f26325a | refs/heads/master | 2023-08-18T22:46:13.316503 | 2021-10-22T04:01:57 | 2021-10-22T04:01:57 | 399,047,712 | 0 | 0 | NOASSERTION | 2021-08-23T09:37:25 | 2021-08-23T09:37:25 | null | UTF-8 | Python | false | false | 9,194 | 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... | [
"[email protected]"
] | |
4f0d3727a003f65b28d97e95316cdc9eefd284eb | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_196/ch80_2020_04_13_18_23_05_143280.py | f6edda895b2e0e2bcd29788dd3078b902f425c3f | [] | 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 | 151 | py | def interseccao_chaves(dic1,dic2):
lista = []
for a in dic1.keys() and in dic2.keys():
lista.append(a,b)
return lista
| [
"[email protected]"
] | |
b7935778e4af05b4794433f47991deced92fb943 | d9a469bc9cff39d89e7cb04e4fc537763aee9aca | /binance_chain/exceptions.py | 957d3ed87c3cd1eb28ab1f816979271c6ed5ca5f | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sammchardy/python-binance-chain | d017c0f1e6bd84d28017f87e2d229b21a2ee8b8a | 19d7d639cc912a27ec86831338c2a2dc96289d50 | refs/heads/master | 2023-05-11T19:15:44.912507 | 2021-06-01T03:14:25 | 2021-06-01T03:14:25 | 172,324,144 | 310 | 111 | MIT | 2022-06-30T10:55:19 | 2019-02-24T10:29:29 | Python | UTF-8 | Python | false | false | 1,626 | py | import ujson as json
class BinanceChainAPIException(Exception):
def __init__(self, response, status_code):
self.code = 0
try:
json_res = json.loads(response.content)
except ValueError:
if not response.content:
self.message = status_code
... | [
"[email protected]"
] | |
05cdd6e0b5aadfcd1453901287e445578f2b8e29 | 6ba38fe94e7ea5146c633f56f59c0c3278d695a7 | /build/build_for_ios | d6425614eecc82e40f167b7e162c91cecd846058 | [
"MIT"
] | permissive | mworks/mworks | b49b721c2c5c0471180516892649fe3bd753a326 | abf78fc91a44b99a97cf0eafb29e68ca3b7a08c7 | refs/heads/master | 2023-09-05T20:04:58.434227 | 2023-08-30T01:08:09 | 2023-08-30T01:08:09 | 2,356,013 | 14 | 11 | null | 2012-10-03T17:48:45 | 2011-09-09T14:55:57 | C++ | UTF-8 | Python | false | false | 941 | #!/usr/bin/env python3
import argparse
from subprocess import check_call
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--archive', action='store_true',
help='create an archive for distribution')
parser.add_argument('version', nargs='?', help='version number')... | [
"[email protected]"
] | ||
441e60c7846fde6cca41e6cbb3845b685e4f8672 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/cctbx/symmetry_search/boost_python/SConscript | be2824dfaa2fdc51694642b708bafd590f93bda6 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 216 | Import("env_cctbx_boost_python_ext")
env = env_cctbx_boost_python_ext.Clone()
env.Prepend(LIBS=["cctbx", "omptbx"])
env.SharedLibrary(target="#lib/cctbx_symmetry_search_ext", source=[
"symmetry_search_ext.cpp",
])
| [
"[email protected]"
] | ||
4f1ec457cdb2aff59d8558ed5d090e890e081fa7 | 80a689cecd96315e55e6452d201e6531868bdc99 | /management/commands/pdk_nudge_ios_devices_boto.py | c82c6760ca2673b2252cf9062343fe8914127764 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | kamau-edwin/PassiveDataKit-Django | d36fad6b366fef32c96941b10455b054abd44f7c | 95db5701f88c74328b0611124149fdffa079e7b8 | refs/heads/master | 2021-01-06T17:25:50.471370 | 2020-02-26T21:17:32 | 2020-02-26T21:17:32 | 241,416,694 | 0 | 0 | Apache-2.0 | 2020-02-18T16:56:09 | 2020-02-18T16:56:07 | null | UTF-8 | Python | false | false | 5,828 | py | # pylint: disable=no-member,line-too-long
import json
import re
import boto
import boto.exception
import boto.sns
from django.conf import settings
from django.core.management.base import BaseCommand
from ...decorators import handle_lock, log_scheduled_event
from ...models import DataPoint
class Command(BaseComman... | [
"[email protected]"
] | |
cebcfbab3351bb97acf855a4e8a6a0e12ecff3e0 | d88f9acfe09d79f06cf251b8cbbb012b55d99f39 | /Scraping/test_scraping/create_sqlite_db.py | 95e1b304f3fc724c65ddf601e4224bbe7e44b3ed | [] | no_license | Twishar/DataAnalysis | 535beb795e30b8ac07767a61f1ebfbc60546271f | e5d5ba9ba0b9a51031e8f1f4225bc35d848159dd | refs/heads/master | 2022-03-04T19:02:30.917729 | 2019-11-15T14:18:53 | 2019-11-15T14:18:53 | 98,515,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py |
import sqlite3
conn = sqlite3.connect('allo_db.sqlite')
c = conn.cursor()
c.execute('''CREATE TABLE allo_parse
(search_param text, results text);''')
conn.commit()
conn.close()
| [
"[email protected]"
] | |
3f39b4c11c3aa082d210897c4b788bb31b2e0551 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/carbonui/control/windowDropDownMenu.py | 6c26d7806b20cec4ebb3158345c97b472461b7f6 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,453 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\carbonui\control\windowDropDownMenu.py
import carbonui.const as uiconst
from carbonui.primitives.container import Container
from carbonui.primitives.fill import Fill
from carbonui.primitives.line import Line
from carbonui.... | [
"[email protected]"
] | |
bc9fb2afed22a652d7a229f920fb725987c8015a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /7DrvnMeY2Ebzk2mfH_8.py | cdf4c6f5d8fb4f7a25817718499599ad9938b579 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py |
import re
body_insert = '(?<=<body>\n)'
body_append = '(?=\n</body>)'
body_rewrite = '(?<=<body>\n)(?:\n|.)+(?=\n</body>)'
| [
"[email protected]"
] | |
812988adf18876c0cce0bafb504a64050e1ff7f7 | ddcf878cca43d49f73fd673279a97e82ced521e8 | /peyotl/nexson_proxy.py | 0695ac59e11bb24cc41859e401f46be707764742 | [
"BSD-2-Clause",
"Python-2.0"
] | permissive | OpenTreeOfLife/peyotl | ca5fcbc4f1754c3da7a25c93d89cfeaaad17057f | b50f7217966c18195c9b52be42454513ffa3e7f3 | refs/heads/master | 2023-08-03T14:35:46.793662 | 2023-07-26T20:30:08 | 2023-07-26T20:30:08 | 16,637,087 | 6 | 4 | BSD-2-Clause | 2023-07-24T20:02:30 | 2014-02-08T05:52:12 | Jupyter Notebook | UTF-8 | Python | false | false | 13,589 | py | #!/usr/bin/env python
"""Provides high level wrappers around a Nexson data model blob to
let it be treated as if it were a list of OTUs and a list of trees
Accessors return either references to part of the NexSON or wrappers around
those entities (not copies!)
Weakrefs are used, so the more inclusive containers must ... | [
"[email protected]"
] | |
a317a9e4f4f5d6e738556b77ccdf5ca54c22337f | d8ef155d2b931642e448263d43fbf856b3a466c0 | /certificates/__main__.py | ac85092b9df679740502289f380cc93e8e0a251c | [
"Apache-2.0"
] | permissive | diemesleno/certificates | a34632bc97a175fd739cdaa6d78f880316176a3c | 7aedf80903304216c6d9a8c99efd4df5aa7f8049 | refs/heads/master | 2022-02-15T17:44:43.132433 | 2019-08-16T05:44:26 | 2019-08-16T05:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import argparse
from .certificates import make_certificates
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
"participants", help="csv filaname containing participants"
)
parser.add_argument(
"template", help="certificate template in svg format used to build"
)
... | [
"[email protected]"
] | |
eee490dcf526ffb10b67a1324f01736b974f8ce9 | 89f8a2e609c2b2a7e4ca10be3830200c7e8e438e | /ftp_homework/ftp_1/bin/start_server.py | e0741d5f538a88369aa9ea5194dab97ea4334bde | [] | no_license | boundshunter/s5-study | b8265ccc0d09f19624002b5919c5fb6104bf65d3 | 528eda7435a14a2a79c88af02695efec13972f25 | refs/heads/master | 2018-09-27T17:40:28.352951 | 2018-06-11T15:38:13 | 2018-06-11T15:38:13 | 111,669,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'jfsu'
import sys
import os
BaseDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BaseDir)
from core import ftpserver
if __name__ == '__main__':
sv = ftpserver.FtpServer()
| [
"[email protected]"
] | |
27a9e101cd4a7f253db5f5c89fb3068918340ead | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python Fundamentals/03 Lists Basics/Exercises/07_Easter_Gifts.py | 172ea7853a18b1443adb30323f730642b61c1f6b | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | gifts_names = input().split(" ")
command = input()
while command != "No Money":
command_list = command.split(" ")
if command_list[0] == "OutOfStock":
if command_list[1] in gifts_names:
for i in range(len(gifts_names)):
if gifts_names[i] == command_list[1]:
... | [
"[email protected]"
] | |
92f0088358bab1fa58c2c52e016d253b12bfc28d | 7246faf9a222269ce2612613f58dc5ff19091f10 | /baekjoon/3000~5999/4948_베르트랑공준.py | f2adb647d3f69804cccea3dfb61db9c7a6ded31a | [] | no_license | gusdn3477/Algorithm_Study | 87a2eb72a8488d9263a86db70dadc7944434d41d | 3fefe1dcb40122157845ffc542f41cb097711cc8 | refs/heads/main | 2023-08-30T12:18:21.412945 | 2021-09-28T13:00:11 | 2021-09-28T13:00:11 | 308,364,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from math import sqrt
arr = [i for i in range(250000)]
arr[0] = 0
arr[1] = 0
for i in range(2, int(sqrt(250000)) + 1):
for j in range(i + i, 250000, i):
if arr[j] != 0:
arr[j] = 0
while True:
N = int(input())
ct = 0
if N == 0:
break
for i in range(N + 1, N * 2 + 1):... | [
"[email protected]"
] | |
fd6c788ba6b8318466159be137309f8ff4ea1a29 | 9f109d4d4fa2eb4ecec2415a21e45945a35cd58a | /xshop/users/tests/test_models.py | 81150f9ff1be611e68b2606f5f69d464e95e5b0d | [] | no_license | denokenya/xshop-web | 4be66a39272075b778ed7dd8de996fec90b5fab8 | 262665ec4c2cb91490b219a086b8994d6eceb805 | refs/heads/master | 2023-06-07T02:54:57.068430 | 2020-09-13T11:24:32 | 2020-09-13T11:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from django.test import TestCase
from model_bakery import baker
from ..models import User
class UserTests(TestCase):
def setUp(self) -> None:
self.user = baker.make(
User,
mobile="01010092181",
name="Ahmed Loay Shahwan",
email="[email protected]",
)
... | [
"[email protected]"
] | |
4558b73f4309e412016f5c1d22d3652908e71d01 | c2c84c98f2247f2a9fe280e41f3a4dc74fd4de1a | /online/analyses.py | 73a0d03dbb5a0da0b17ff4129ab1c019baf63cab | [
"MIT"
] | permissive | mrware91/tmolv29 | 153ded42ee190287442330943a2a9c51d8e55243 | 823321f2505b684e9fd1de1c01f4e46997f1e307 | refs/heads/main | 2023-04-06T13:55:09.926010 | 2021-04-14T14:26:05 | 2021-04-14T14:26:05 | 347,172,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,299 | py | # Contributors: Matt Ware
import numpy as np
class analyses:
def __init__(self, analysis, totalEvents,printMode='verbose'):
self.analysis = analysis
self.totalEvents = totalEvents
self.events = 0
self.printMode = printMode
self.data = {}
self.dataTypesFound = False
... | [
"[email protected]"
] | |
2a5762a03705f381381e6c124790e7ce1ab5d662 | 93a7db386dfa0ac0dc369cc7f4b974224c801d8d | /scripts/ngram_io.py | 33d3856f68312a40f09259482de1803a86d567b5 | [] | no_license | lingxiao/good-great-combo | e051f20c89b7317a14ca5cee357bda7b095ce174 | 4d2691866bc21e2c542354ad3aae6f369eb86c87 | refs/heads/master | 2021-01-19T19:30:43.391759 | 2017-04-09T12:35:15 | 2017-04-09T12:35:15 | 83,699,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | ############################################################
# Module : Open Ngram and read linguistic pattern
# Date : April 3rd, 2017
# Author : Xiao Ling, merle
############################################################
import os
############################################################
'''
@Use : Op... | [
"[email protected]"
] | |
8e0fdec3518e0ed5c1d564e69641dbdf3e33a918 | 9b617d281d83880d385a57809c4cafd55024d516 | /manage.py | ca0d6f3d331fffa4ace90b822a09041b6d37c7af | [] | no_license | crowdbotics-users/wwickey-crowdbotics-164 | 3df5074f39dc34de2def1bde928f523391942689 | 909b185e528f60b9258b317f7c26b35e791d8685 | refs/heads/master | 2020-03-16T12:02:27.614606 | 2018-05-08T20:01:05 | 2018-05-08T20:01:05 | 132,658,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wwickey_crowdbotics_164.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. ... | [
"[email protected]"
] | |
c4d693a018899753b9d47f6da7643ece8efb4bfe | 10fbe5526e5f0b8588b65f70f088cd86b6e9afbe | /irmtbds/migrations/0002_auto_20150218_1621.py | 3c05b27f5b6c037590a673b577c9744a196e934f | [] | no_license | MarkusH/django-migrations-benchmark | eb4b2312bb30a5a5d2abf25e95eca8f714162056 | e2bd24755389668b34b87d254ec8ac63725dc56e | refs/heads/master | 2016-09-05T15:36:45.250134 | 2015-03-31T23:44:28 | 2015-03-31T23:44:28 | 31,168,231 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('irmtbds', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='rqzheruyb',
name='xk... | [
"[email protected]"
] | |
d605544bb5bd4b5f2f891b75f75930b2d21e7fe4 | 048df2b4dc5ad153a36afad33831017800b9b9c7 | /atcoder/agc008/agc008_c.py | 01428e6976f334cebf389e5e84a0a5f947a48943 | [] | no_license | fluffyowl/past-submissions | a73e8f5157c647634668c200cd977f4428c6ac7d | 24706da1f79e5595b2f9f2583c736135ea055eb7 | refs/heads/master | 2022-02-21T06:32:43.156817 | 2019-09-16T00:17:50 | 2019-09-16T00:17:50 | 71,639,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | a, b, c, d, e, f, g = map(int, raw_input().split())
if a > 0 and d > 0 and e > 0:
ans1 = b + a / 2 * 2 + d / 2 * 2 + e / 2 * 2
ans2 = b + 3 + (a-1) / 2 * 2 + (d-1) / 2 * 2 + (e-1) / 2 * 2
print max(ans1, ans2)
else:
print b + a / 2 * 2 + d / 2 * 2 + e / 2 * 2
| [
"[email protected]"
] | |
64801be0735e6c4264e2fcac275da94b245371ca | 2ed6ad4a736879a47d192159da45ca56610c089a | /tests/test_db.py | 22393c254cb71d6912d534a4a6399d1eabd15537 | [
"MIT"
] | permissive | poonyisaTH/gsheets-db-api | a82bd35984766697757cc96aa74a1281d948f019 | f023b32986d4da9a501fca8d435f2b6edc153353 | refs/heads/master | 2023-05-29T15:01:10.604324 | 2021-02-17T20:59:41 | 2021-02-17T20:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,045 | py | # -*- coding: utf-8 -*-
from collections import namedtuple
import unittest
import requests_mock
from .context import (
apply_parameters,
Connection,
connect,
exceptions,
)
class DBTestSuite(unittest.TestCase):
header_payload = {
'table': {
'cols': [
{'id': '... | [
"[email protected]"
] | |
b4d01dd3705d74d25a15957865fcbc913580986c | 36afa271f080459adf1014cd23f4be9f954dfee6 | /Crawler/Course/第八章:scrapy框架/sunPro/sunPro/spiders/sun.py | 35ab678e80afc0bf5d06d12f11a75a5455738471 | [] | no_license | King-Of-Game/Python | b69186a7574ce1c0b7097207cfe9a2eb38a90bc0 | 643b9fd22efd78f6679735f23432943a57b5f5bb | refs/heads/master | 2023-05-25T05:35:14.473114 | 2021-10-24T12:52:21 | 2021-10-24T12:52:21 | 151,251,434 | 3 | 0 | null | 2023-05-01T20:51:50 | 2018-10-02T12:34:04 | HTML | UTF-8 | Python | false | false | 2,909 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from sunPro.items import SunproItem
from sunPro.items import DetailItem
# 需求:爬取小说分类、名称、人气、简介
class SunSpider(CrawlSpider):
name = 'sun'
# allowed_domains = ['www.xxx.com']
sta... | [
"[email protected]"
] | |
15255dffd47f10b3f99409f7b5dea95315005ab9 | fb8cbebdf034b2f478943752d5443afc82c6eef5 | /tuirer/users/models.py | a3a6f2b88a946f2a8ca0ab80decd3e78a3924509 | [] | no_license | fariasjr/CitiTuirer | f64e0ec93ef088f8140bb0961d2ad4ed3b59448a | deb3f7a9c2d45b8a7f54639037f097b99abdac11 | refs/heads/master | 2020-03-24T05:10:36.261050 | 2018-08-01T20:24:30 | 2018-08-01T20:24:30 | 142,477,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
picture = models.ImageField('Fotode perfil', default='/img/blank-pic.png')
following = models.ManyToManyField('self', blank=True) | [
"[email protected]"
] | |
ea9e7a8b99cd02b1f71e0f5c2c419a055b084728 | fe0bca3fcf363ebc465fcc370e77b55df1cfaaa7 | /src/route/work_viewer.py | f79466d814c37cc4151ac1ca0217dbe9d45950dc | [] | no_license | sihcpro/todo-list | 66847aece556fe45223b98ecc44f04bbaaf17b55 | 1db48a63e9f4d309d57baeca691f6e85c36866a6 | refs/heads/master | 2022-11-17T14:34:20.316901 | 2020-07-14T10:16:18 | 2020-07-14T10:16:18 | 279,233,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,661 | py | import calendar
from datetime import timedelta
from sqlalchemy import Date, and_, cast, or_
from .data_define import ShowWorkData
from .resource import WorkResource
def configWorkViewer(Domain):
session = Domain.session
def getValidatedDate(param):
date_data = ShowWorkData(
from_date=par... | [
"[email protected]"
] | |
77d3ccb4fbb606e29dc100993d9286af9143d806 | f00767fdeed6bfa8b12f6900b9f9bd5c70786895 | /models/base_db.py | b9ec16abf725b932e97446cf9463b303db180b0b | [] | no_license | guoyu07/domain_whois_query | de22cb5d83db2441ba512935fd7f3ed5c158997a | c70b52f2b9306e4b9ead273de279cd149052623f | refs/heads/master | 2020-12-07T06:24:57.907042 | 2015-11-29T00:53:31 | 2015-11-29T00:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # encoding:utf-8
"""
操作数据库基础类
"""
import torndb
class BaseDb(object):
def __init__(self):
self.db = torndb.Connection(
host="172.26.253.3",
database="DomainWhois",
user="root",
password="platform",
charset="utf8"
)
| [
"[email protected]"
] | |
75750e2d778d9088cc0aa9d4e0a9b23d245d0029 | 7041c85dffb757c3e7063118730363f32ebb9b8a | /프로젝트/20190111/open_api.py | af937d2499eb4c1f56272d6930b3d2c64641b4f6 | [] | no_license | woonji913/til | efae551baff56f3ca16169b93185a65f4d81cd7a | a05efc68f88f535c26cb4d4a396a1e9cd6bf0248 | refs/heads/master | 2021-06-06T23:17:54.504620 | 2019-06-19T04:29:18 | 2019-06-19T04:29:18 | 163,778,844 | 1 | 0 | null | 2021-05-08T16:27:17 | 2019-01-02T01:08:19 | HTML | UTF-8 | Python | false | false | 1,240 | py | import requests
from bs4 import BeautifulSoup
import csv, datetime, os
date = datetime.date(2019, 1, 13)
weeks = datetime.timedelta(7)
movies = []
check = set()
key = os.environ['KEY']
for i in range(10):
current = date - weeks * i
url = f'http://www.kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/searchW... | [
"[email protected]"
] | |
d1597ffd8c87152ec49b9949a7de3ec827c5d1d4 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/matplotlib/2017/12/setupext.py | 2868fd76aee773dc4d8d576d9dfe80e8c6cca6b4 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 68,786 | py | from __future__ import print_function, absolute_import
from importlib import import_module
from distutils import sysconfig
from distutils import version
from distutils.core import Extension
import distutils.command.build_ext
import glob
import multiprocessing
import os
import platform
import re
import subprocess
from... | [
"[email protected]"
] | |
7d31fe18877c6078bd75cf9d7badeddd503d0e55 | 0466559817d3a1be9409da2c83db99c4db3bacfe | /hubcheck/shell/container_manager.py | 0d0d575c450a0cd9d608a7c9e7729ac697b061c0 | [
"MIT"
] | permissive | ken2190/hubcheck | 955cf9b75a1ee77e28256dfd3a780cfbc17de961 | 2ff506eb56ba00f035300862f8848e4168452a17 | refs/heads/master | 2023-03-20T15:17:12.949715 | 2015-09-29T16:11:18 | 2015-09-29T16:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,451 | py | from .toolsession import ToolSession
from hubcheck.exceptions import ConnectionClosedError
from hubcheck.exceptions import SessionCreateError
import logging
import pprint
import re
import hubcheck.conf
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._insta... | [
"[email protected]"
] | |
694553df0c0aa0de72c6cd3372d907b36a37b9fa | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_RTN8_solve.py | 7578551770778fbca70157c20919e407da47b880 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 2,357 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import math
def optimal(from_, to_):
if from_ % 2 == 0:
yield from_
from_ += 1
for divider_candidate in range(from_, to_, 2):
yield divider_candidate
def get_divider(x, from_, to_):
for divider_candidate in optimal(from_, min(to_, int(ma... | [
"[[email protected]]"
] | |
3c851c00f3168cf06f90684e89022ab2bc3965e0 | c9697437c292df7fefd68559fdd9636066bdb2f1 | /dev/animations/quick_sph_harm_anim.py | 70d6bba7b23d2c08505d1efe4f8e75ea2ef961bf | [] | no_license | JoshKarpel/ionization | ebdb387483a9bc3fdb52818ab8e897e562ffcc67 | 3056df523ee90147d262b0e8bfaaef6f2678ea11 | refs/heads/master | 2021-03-24T13:03:57.469388 | 2020-04-06T03:37:04 | 2020-04-06T03:37:04 | 62,348,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,491 | py | import logging
import os
from copy import deepcopy
import simulacra as si
from simulacra.units import *
import ionization as ion
import matplotlib.pyplot as plt
FILE_NAME = os.path.splitext(os.path.basename(__file__))[0]
OUT_DIR = os.path.join(os.getcwd(), "out", FILE_NAME)
if __name__ == "__main__":
with si.u... | [
"[email protected]"
] | |
1c68371a7e2d8eaddb197d4d63eff1c8935ef143 | 5c8346597e3690eec3939f56f233eb5fafd336bc | /varsom_regobs_client/models/snow_temp_view_model.py | 761a19ec81381882d6deee0093d85ef0c634d216 | [] | no_license | NVE/python-varsom-regobs-client | be44befd04ca07058f8b46ec69bf1659d3ee422b | 8bb7fc06d2f6da36a5fa4a475d4f036ebe3cfd72 | refs/heads/master | 2022-12-27T19:09:54.761318 | 2020-06-24T08:56:15 | 2020-06-24T08:56:15 | 274,619,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,254 | py | # coding: utf-8
"""
RegObs API
## Introduction RegObs is a tool for collecting observations and events related to natural hazards. It is currently used by the Norwegian flood, landslide and avalanche warning service in Norway, but the data is openly available for anyone through this API. Regobs ... | [
"[email protected]"
] | |
72dff18867a5ecc45e8a6feb50567cf3be592ed6 | 6c951ca04d6c0db92b05972d651d370302d98a2c | /tests/test_sensitivity_analyzer.py | 35a1db44b33b09a91687ae8644cb8603a1c9727c | [
"MIT"
] | permissive | nickderobertis/sensitivity | 9309bba0aadbac6e8dba09e7c7b1477d063a6d6d | 8f0d0e676213772bdb8cbc8c6fc08fdba6dc6b53 | refs/heads/master | 2023-02-23T20:33:45.118907 | 2022-10-09T01:17:01 | 2022-10-09T01:17:01 | 239,607,375 | 12 | 0 | MIT | 2023-02-11T02:07:41 | 2020-02-10T20:33:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,995 | py | import uuid
from pandas.testing import assert_frame_equal
from sensitivity import SensitivityAnalyzer
from tests.base import EXPECT_DF_TWO_VALUE, SENSITIVITY_VALUES_TWO_VALUE, add_5_to_values, RESULT_NAME, \
SENSITIVITY_VALUES_THREE_VALUE, add_10_to_values, EXPECT_DF_THREE_VALUE, assert_styled_matches, \
DF_S... | [
"[email protected]"
] | |
0497e0262a8ee739513125f73d20dec716f79060 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/cylicRot_20200714234806.py | 755b17fab1acf221b7f045ba530fc306bc41432f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # given an array rotate it k times to the right
def rotate(arr,k):
# first I'd rotate the array once
# so how do we rotate the array
# we move the last element to the firs place and
# the rest follow suit
# [1,2,3,4]
# [4,2,3,1]
# [4,1,3,2]
# [4,1,2,3]
# [4,1,2,3]
# all we ar... | [
"[email protected]"
] | |
e615006a23c81dc60b0a5cdc99d864b0a4c4a7d4 | c724fad90be2e221cb0f5c0005ebcfbdfdb35d27 | /backend/fitsii_19945/wsgi.py | cfa9f31b691c6399a7797d950bc243dc2bb70ac9 | [] | no_license | crowdbotics-apps/fitsii-19945 | d461349a510febd39f4edcaeb2b8b722664e3bf0 | 040621b4053e58b9c323ef7222a6a36465c4806e | refs/heads/master | 2022-12-07T18:18:50.580128 | 2020-09-02T16:56:11 | 2020-09-02T16:56:11 | 292,342,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for fitsii_19945 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"[email protected]"
] | |
c5968b91f1e8556b70007f764784c56df35cfef6 | 2c89037666a3c3c9be55b53055c73aa9fcbde2b7 | /webrobot/app/main/service/user_service.py | 1aa181ef641092046126c96166d66c61d9b54523 | [
"MIT"
] | permissive | kakawaa/Auto-Test-System | 844284de1eb5fac8fa8c5318371c99991caff62d | 76b0690e4e49769ec5d6e65ab6c499396880c0bd | refs/heads/master | 2020-06-17T11:42:38.121124 | 2019-07-05T03:32:39 | 2019-07-05T03:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | # import uuid
import datetime
import os
from pathlib import Path
from app.main import db
from app.main.model.database import User, Organization
from task_runner.runner import start_threads
from ..config import get_config
from ..util.errors import *
from ..util.identicon import *
USERS_ROOT = Path(get_config().USERS_... | [
"[email protected]"
] | |
56a9016f9048bf93ced9d3230e3e07125c5674b2 | 01bd00e6498190aac53210689c111d72018956fa | /companies/migrations/0047_auto_20190917_1011.py | a0c9fdef406a96c4ea5f7cbf5a40000ea2755162 | [] | no_license | dchaplinsky/edrdr | 0494b31fe3a0ce54d0cf087fb11ef709cb002810 | e9fd5295f8c7ca7db81fce2427456e779ff6637e | refs/heads/master | 2022-06-01T07:01:59.049162 | 2020-10-12T08:04:42 | 2020-10-12T08:04:42 | 122,268,695 | 0 | 1 | null | 2022-04-22T20:52:45 | 2018-02-20T23:14:48 | CSS | UTF-8 | Python | false | false | 571 | py | # Generated by Django 2.2.3 on 2019-09-17 10:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0046_pepowner_person_type'),
]
operations = [
migrations.AddField(
model_name='companyrecord',
name='ch... | [
"[email protected]"
] | |
62468571196349acaac805658ec61d5532fcb955 | dc4a42ad81013a1fdaa0c6be0559504e17bacb7e | /products/admin.py | a845d9021b184ff03ccdeed387467a77c73d2d28 | [] | no_license | deone/eqsupply | 15afbda692779431357d2c69475da8503c4728b1 | 3af726b65c1658d364c6485ad36ef98d5c6e7fc3 | refs/heads/master | 2020-04-20T05:29:53.020966 | 2010-05-13T09:16:18 | 2010-05-13T09:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from django.contrib import admin
from eqsupply.products.models import *
admin.site.register(Division)
admin.site.register(Category)
admin.site.register(Product)
admin.site.register(Accessory)
admin.site.register(ProductVariant)
| [
"[email protected]"
] | |
07fed4cb0ac0a9c9fe7cf77a4577b118c598fd1f | 6147d3da9c7f31a658f13892de457ed5a9314b22 | /multithreading/without_threading.py | 4f637839a61975629dea515f930117251368c52c | [] | no_license | ashish-bisht/must_do_geeks_for_geeks | 17ba77608eb2d24cf4adb217c8e5a65980e85609 | 7ee5711c4438660db78916cf876c831259109ecc | refs/heads/master | 2023-02-11T22:37:03.302401 | 2021-01-03T05:53:03 | 2021-01-03T05:53:03 | 320,353,079 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import threading
import time
start = time.perf_counter()
def working_on_something():
print("Sleeping for a sec")
time.sleep(1)
print("Woke up")
working_on_something()
working_on_something()
finish = time.perf_counter()
print("total time taken is ", finish - start)
| [
"[email protected]"
] | |
9ab7745e8b4d48edd0fe67af3de20eca60454dcc | f59a3641f488dd40b0af4c0024a252170ab59998 | /chap4/p35.py | d89dca31848be92a9ad88a15209c75b1fe2ad076 | [] | no_license | ujiuji1259/NLP100 | 478a5276514d2f21ac5ee5ec9b50f00dcba67d1a | c19f9ba00eec108dbc93d4cb7d33e86f539d3397 | refs/heads/master | 2023-04-01T23:05:14.376652 | 2021-04-13T05:21:37 | 2021-04-13T05:21:37 | 255,311,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # mecab neko.txt > neko.txt.mecab
from p30 import load_mecab_output
import collections
if __name__ == '__main__':
lines = load_mecab_output('neko.txt.mecab')
lines = [l['surface'] for line in lines for l in line]
counter = collections.Counter(lines)
print(counter.most_common())
| [
"[email protected]"
] | |
f0ec9069cd636274166bcd07ca0cebc104ee447b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03598/s680963277.py | c8861d19ff2e2ce27d5b6a660a4fb273c93d87c7 | [] | 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 | 173 | py | N = int(input())
K = int(input())
x = list(map(int, input().split()))
A=[]
B=[]
for i in range(len(x)):
a = min(2*(x[i]), 2*abs(K-x[i]))
A.append(a)
print(sum(A)) | [
"[email protected]"
] | |
0d843d4556bf97c40beacc40c239357fa08e4b8a | 05263538c3ad0f577cdbbdb9bac87dcf450230ce | /alexa/ask-sdk/ask_sdk_dynamodb/__version__.py | 5cfdf120d47b16330d48f329ae8c0e26ce048100 | [] | no_license | blairharper/ISS-GoogleMap-project | cea027324fc675a9a309b5277de99fc0265dcb80 | 3df119036b454a0bb219af2d703195f4154a2471 | refs/heads/master | 2020-03-21T16:47:21.046174 | 2018-10-24T08:05:57 | 2018-10-24T08:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | #
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights
# Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"[email protected]"
] | |
d07d964851d7ea84722cc1c566fdb976f5049c0a | 10d98fecb882d4c84595364f715f4e8b8309a66f | /non_semantic_speech_benchmark/distillation/train_keras_test.py | 58293b999787e89c984afb7ffed56dbb033ecc48 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 3,089 | py | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | [
"[email protected]"
] | |
ba106a98267a6ec0d424113b2870654dbf4698b9 | 3154e6d1a9e9e9919cae75570969da36c45429d7 | /codigo/tutorial/tut0C_camara.py | 9e54589237d6c51292d941cdce95c822a95243c0 | [] | no_license | javacasm/TutorialPyGame | 0d458c7155794668fc1464c466e4d740b3ac77ee | baeb7ce5dda151f8093e39f8b14182a8ee5de926 | refs/heads/master | 2021-07-25T20:01:04.504958 | 2021-05-10T12:33:26 | 2021-05-10T12:33:26 | 250,080,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | https://www.pygame.org/docs/tut/CameraIntro.html
```python
class Capture(object):
def __init__(self):
self.size = (640,480)
# create a display surface. standard pygame stuff
self.display = pygame.display.set_mode(self.size, 0)
# this is the same as what we saw before
self.c... | [
"[email protected]"
] | |
f62111deb74e279775448c7d5a97f5ea7f6a8255 | 9f835d53232e954805b7ed1d93889e409209b36b | /1541_복습.py | 134932438e9def1182112113c24eb401c83df29d | [] | no_license | dmswl0311/Baekjoon | 7c8a862fceff086b3d7740eef23b80164e1d5aeb | 22040aff6b64d5081e86d91b0d118d1a718a4316 | refs/heads/master | 2023-04-29T13:48:51.448245 | 2021-05-26T14:35:32 | 2021-05-26T14:35:32 | 323,482,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | s = input().split('-')
sum = 0
result = []
for i in s:
if '+' in i:
a = i.split('+')
for j in a:
sum += int(j)
result.append(sum)
else:
result.append(int(i))
minus = result[0]
for i in range(1, len(result)):
minus -= result[i]
print(minus)
| [
"[email protected]"
] | |
bcdcdba6ff316a16065b95a2bba284abc290a417 | 9d25d1205da84db33bc425266bc3021cd7529cb1 | /digitalearthau/testing/plugin.py | b73fdee1aba0e11cd5d8c9a183a595c1b7c6e754 | [] | no_license | GeoscienceAustralia/digitalearthau | 9068970b2794a4ac55a34f910caa5877b548bb37 | 4cf486eb2a93d7de23f86ce6de0c3af549fe42a9 | refs/heads/develop | 2023-06-22T14:31:41.516829 | 2022-11-14T05:22:05 | 2022-11-14T05:22:05 | 51,411,119 | 31 | 21 | null | 2023-06-14T06:36:31 | 2016-02-10T00:16:36 | Python | UTF-8 | Python | false | false | 2,081 | py | import itertools
import os
import pytest
from pathlib import Path
from typing import Iterable
import datacube
import digitalearthau
import digitalearthau.system
from datacube.config import LocalConfig
from . import factories
# These are unavoidable in pytests due to fixtures
# pylint: disable=redefined-outer-name,pr... | [
"[email protected]"
] | |
76f794ba7b0ecbb4b8044008f296f605ccca2439 | 94838674ffd175df6194437c1ccc3f90ab409d6c | /pillowV3/log/2018-12-30 14:25:26.954969 | 574f467c8fb2f82034a73060e36f0973007e6bd0 | [] | no_license | WojciechKoz/MyFirstNeuralNetwork | 4fdb3140d8f02257599d005638598f78055c1ac8 | 3cd032aba80ecd71edb0286724ae9ba565b75a81 | refs/heads/master | 2020-04-02T03:02:48.680433 | 2020-02-29T17:57:43 | 2020-02-29T17:57:43 | 153,943,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498,667 | 954969 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import print_function # new print() on python2
from datetime import datetime
import sys
import numpy as np
from mnist import MNIST
# Display full arrays
np.set_printoptions(threshold=np.inf)
mndata = MNIST('./data')
images_full, labels_full = mndata.loa... | [
"[email protected]"
] | |
d1ddaf333839d2b4c77c8c4265b2240ac9836035 | 8d6fa96da4220ba886ef8e858f1925b6dca34e58 | /examples/wtf/wtf/config.py | 7cf539ff078f59cb14f772090950734c0d091acb | [] | no_license | FZambia/cyclone-wtforms | 6ee26c920171685e027529e8f1fbb99c765edc30 | c266b5f3bfff77e3a721b3335b74a294966f7daf | refs/heads/master | 2016-09-05T15:23:08.336180 | 2012-10-05T18:55:00 | 2012-10-05T18:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | # coding: utf-8
#
# Copyright 2010 Alexandre Fiori
# based on the original Tornado by Facebook
#
# 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... | [
"[email protected]"
] | |
643a7e8fab27c002a3adec8754905d174c27db19 | ab4f74d127bfc89813ee359bb9c779eca5426ddc | /script/label_image.runfiles/org_tensorflow/tensorflow/contrib/resampler/python/ops/resampler_ops.py | 77aba28802d7d37842990c9062030322f5f2eb39 | [
"MIT"
] | permissive | harshit-jain-git/ImageNET | cdfd5a340b62862ad8d1cc3b9a0f30cccc481744 | 1cd4c2b70917e4709ce75422c0205fe3735a1b01 | refs/heads/master | 2022-12-11T12:47:46.795376 | 2017-12-19T05:47:26 | 2017-12-19T05:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | /home/co/Documents/ImageClassifier/tensorflow/tensorflow/contrib/resampler/python/ops/resampler_ops.py | [
"[email protected]"
] | |
128efb9b492a29c2e87a97b932e626a724b6af9f | 52b9016932aa426eeaaade5d856af6a1a771683f | /tests/testapp/serializers.py | 3c4be81a47c21da377120bda5b7ee7eb6deb647d | [
"MIT"
] | permissive | marlncpe/django-rest-pandas | 33033627d88c6467a9677133402fb519d5ea5a75 | 89a93c3ce8d30688f9137f5a9beacc7d63f621e0 | refs/heads/master | 2021-01-23T11:55:02.722962 | 2017-09-01T20:47:46 | 2017-09-01T20:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from rest_pandas import PandasUnstackedSerializer
from .models import TimeSeries, MultiTimeSeries, ComplexTimeSeries
class TimeSeriesSerializer(ModelSerializer):
date = serializers.DateField(format=None)
class Meta:... | [
"[email protected]"
] | |
626e284b40ec0447bfcba31a165d86827eb7df2a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /gHrMmA7emP6CFAMnb_6.py | 35eeb43f5be552b55e650249bf1ff464b8e37754 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py |
def is_apocalyptic(n):
L=str(2**n).split('666')
if len(L)==1:
return "Safe"
elif len(L)==2:
return "Single"
elif len(L)==3:
return "Double"
elif len(L)==4:
return "Triple"
| [
"[email protected]"
] | |
85041057b18077c038426fd96461f5dbd0ed30a7 | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/the_tale/the_tale/game/companions/tests/test_abilities_effects.py | 433f74ad27be13a54043c1f878032a3d17dfde97 | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 35,535 | py |
import smart_imports
smart_imports.all()
effects = companions_abilities_effects
MODIFIERS = heroes_relations.MODIFIERS
class BaseEffectsTests(utils_testcase.TestCase):
def setUp(self):
super(BaseEffectsTests, self).setUp()
game_logic.create_test_map()
self.account = self.accounts_f... | [
"[email protected]"
] | |
db266f900c6525725d8b23ccc316b88a594ad197 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /dql_grasping/q_graph.py | c0b5360b942f4f2acb0762e32bcf24e28f12f9a4 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 22,583 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"[email protected]"
] | |
4e8d14003c2e112ef076b89c4c8a3ad6613f9a2c | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/customization_failed.py | b63b14e03d5fddb6d06ae4f32d77239d433f8930 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def CustomizationFailed(vim, *args, **kwargs):
'''The customization sequence in the guest... | [
"[email protected]"
] | |
23cb6c73db0e3711ff0ecbd0b6aa7165e94b3584 | a01fb7bb8e8738a3170083d84bc3fcfd40e7e44f | /python3/module/pandas/df/sql/join.py | 540fb2077f46a30f47e810c2b98ebc2c0a79da73 | [] | no_license | jk983294/CommonScript | f07acf603611b4691b176aa4a02791ef7d4d9370 | 774bcbbae9c146f37312c771c9e867fb93a0c452 | refs/heads/master | 2023-08-21T17:50:19.036159 | 2023-08-16T00:22:03 | 2023-08-16T00:22:03 | 42,732,160 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import pandas as pd
import numpy as np
df1 = pd.DataFrame({'key': ['A', 'B', 'C', 'D'], 'value': np.random.randn(4)})
df2 = pd.DataFrame({'key': ['B', 'D', 'D', 'E'], 'value': np.random.randn(4)})
print(df1)
print(df2)
# SELECT * FROM df1 INNER JOIN df2 ON df1.key = df2.key;
print(pd.merge(df1, df2, on='key'))
# in c... | [
"[email protected]"
] | |
478b126ab280b9343347c1ee8bc9238dd9f45703 | 86da8c4d616a78afc7cd09711b0151e5f852a8b8 | /pythonprograms/LanguageFundamentals/Logicaloperator.py | 98dae1b5e2d38ecb15661dfb77541e77356b7768 | [] | no_license | sharijamusthafa/luminarpython | d1d3274d23d93af2c5e4db7d2652e8cb46b133aa | 8ebd75ea5f734e5061a7138153a2c6b1cd43a738 | refs/heads/master | 2022-12-23T22:45:40.194242 | 2020-10-07T16:40:09 | 2020-10-07T16:40:09 | 290,109,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | num1=2
num2=4
print(num1&num2)
| [
"[email protected]"
] | |
f46f3f29cb80c2826087623308da18f78f72a5fc | 91f948b849a03f27c96aa6b76980a5fa68970b70 | /experiments/__init__.py | de913a706b51dac74f50aafe9917d627f649419c | [
"MIT"
] | permissive | satyam-cyc/MASS-Learning | 3d987af7622f604db02b64313179590651285170 | 0d40de5227c94d1a5e4b18e44d16374e12821ad2 | refs/heads/master | 2022-01-10T02:23:06.670225 | 2019-06-11T19:41:35 | 2019-06-11T19:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from .LogModelParameters import LogModelParameters
from .MASSLossTerms import MASSLossTerms
from .ModelLossAndAccuracy import ModelLossAndAccuracy
from .OODDetection import OODDetection
from .SaveModelParameters import SaveModelParameters
from .UncertaintyQuantification import UncertaintyQuantification
| [
"[email protected]"
] | |
cfe436e359c52cb80c53b6b3d45d67431576f12c | 16f173135e81215d05ee8f475c13a16e3796e1fa | /Deep_Learning_with_Keras_in_Python/3.Improving_Your_Model_Performance/Learning the digits.py | 4219e773851dd4e8ea25cc68e96088e4bed25bb3 | [] | no_license | jerry-mkpong/DataCamp | 1b53821f1a32b48efdc8465251401721ba75bb56 | 10445bad35ef11567910ffab6ac70a980555a1b7 | refs/heads/master | 2022-11-11T03:57:21.923366 | 2020-06-28T17:36:10 | 2020-06-28T17:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | '''
You're going to build a model on the digits dataset, a sample dataset that comes pre-loaded with scikit learn. The digits dataset consist of 8x8 pixel handwritten digits from 0 to 9:
You want to distinguish between each of the 10 possible digits given an image, so we are dealing with multi-class classification.
T... | [
"[email protected]"
] | |
cefea000be2b8713b9d4ea548c735c4984caf7de | 3904a5773c5aa047692895dce1225be7d84f5cc7 | /ML_AI_TechWithTim/K-Means/K_Means.py | f33bc323b87c4aba7ff873f2b6d3cbe38641d449 | [] | no_license | snehilk1312/ML_1 | 063038586296c4f6f0ab92422a6c60dd007c4068 | 8e3b081b1037ab999ca78fa282ce7041730d082a | refs/heads/master | 2020-09-07T20:01:45.509060 | 2020-03-15T15:44:54 | 2020-03-15T15:44:54 | 220,898,676 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # Importing modules
import numpy as np
import sklearn
from sklearn.preprocessing import scale
from sklearn.datasets import load_digits
from sklearn.cluster import KMeans
from sklearn import metrics
# Loading Data sets
digits = load_digits()
data = scale(digits.data)
y = digits.target
k = len(np.unique(y)) # ... | [
"[email protected]"
] | |
00bb139bc7606403b576ce7cbadcf0745f8fc7fb | cc1eeb43eb9e4e83078f4c87e40a5c7fe56b109f | /Day05/shuixianhua.py | 8cb8f1e3429d4bb2394b367a322d9a2886c2fb28 | [] | no_license | test-wsl/learn_100 | d57ac4e8e7c062472273622351374decbae6d213 | 9fbb83455c15115b3cdec80d17c542e0aba2a6df | refs/heads/master | 2020-08-29T22:43:10.800177 | 2019-11-04T08:17:38 | 2019-11-04T08:17:38 | 218,192,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
寻找水仙花数
水仙花数为一个三位数,每位上的立方之和正好等于本身
version: 0.1
"""
for num in range(100, 1000):
low = num %10
mid = num // 10 %10
high = num // 100
if num == low ** 3 + mid ** 3 + high **3:
print (num)
| [
"weishl"
] | weishl |
e953daf74af26ba80d58f622e7985c62eaf4cadd | 76de53bd3923a57a36d0ed4b4a900b56050ebb31 | /SW Expert Academy/190926/1263_사람 네트워크2.py | 61dbab0dcf1c40b17376a408ca7e36d21934b1bb | [] | no_license | Seungjin22/Algorithm | 5b4fd53ae5742d830594d116e536531959b3454d | 753dda47334e445f7a9e1e41df5e44564d99e79e | refs/heads/master | 2020-09-04T08:54:01.359518 | 2020-02-03T10:41:05 | 2020-02-03T10:41:05 | 219,697,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import sys
sys.stdin = open('1263_input.txt')
def AllPairsShortest(D):
for k in range(N):
for i in range(N):
if i != k:
for j in range(N):
if j != k and j != i:
D[i][j] = min(D[i][k] + D[k][j], D[i][j])
T = int(input())
for tc in ran... | [
"[email protected]"
] | |
b4577f6dc2ca7a3c75449f92e21cad3aa1b6b5fe | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2814/60652/240209.py | 19b8d713af73e09dfece90f18c9ba12646de0b4a | [] | 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 | 162 | py | n = int(input())
l=list(map(int,input().split()))
l.sort()
num_s=0
wait_time=0
for i in l:
if i>=wait_time:
num_s+=1
wait_time+=i
print(num_s) | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.