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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ca42d0596e83baba9d5db9ae2006cb4535d5ae7 | 4f584789b99a33d806da0b7c5b63da3b608f7b48 | /scripts/select_for_flank_no_cluster.py | 2abf4ec21cd259044682099d708921ec8fc2f7a0 | [] | no_license | satyanarayan-rao/protein_binding_at_enhancers | f10580e76adcc057bf21614c0f9a3c96a8b3f0d5 | 74a6a33efb7acff073b0dcec96c917a4cd019219 | refs/heads/master | 2022-11-30T13:56:41.520639 | 2020-08-11T21:17:19 | 2020-08-11T21:17:19 | 286,848,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | import os
import sys
import re
# sys.argv[1]: peak center bed followed by fragment bed
# sys.argv[2]: left flank
# sys.argv[3]: right flank
# sys.argv[4]: output file
# example string to process:
############ plus strand ###############
# chr2L 11806729 11806730 chr2L:11806729-11806729^20 . ... | [
"satyanarayan.iiitm@gmail.com"
] | satyanarayan.iiitm@gmail.com |
cff935a18b3a8dd945477214d654e10da9785782 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_175/ch7_2019_04_05_07_23_47_128596.py | e71c93b3e84cd75eacaead2a57b81f54e354a04c | [] | 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 | 179 | py | def calcula_norma(lista):
norma = 0
posição = 0
while posição < len(lista):
norma = norma + ((lista[posição])**2)
posição += 1
return norma | [
"you@example.com"
] | you@example.com |
ce8c53a1ad9ddd61101c893fc6e4de313737d7dc | 005a6421cd6159fb6be8c61cc675654377e8f226 | /cairis/test/test_Quotation.py | 018e580836ce7e5d142d3071e9009b7b8741871f | [
"Apache-2.0"
] | permissive | cairis-platform/cairis | d667bc91ba28f0b7cd4fc88e6528eb3339e4ee6f | 55abb93a9377664f5b03c027bad7ce3cf168c5ad | refs/heads/master | 2023-04-06T17:04:08.781186 | 2023-02-17T22:51:15 | 2023-02-17T22:51:15 | 3,790,944 | 105 | 36 | Apache-2.0 | 2022-03-19T15:04:14 | 2012-03-21T20:17:05 | Python | UTF-8 | Python | false | false | 4,649 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
94773d47853ffd56eda2a329773cc166f7b25212 | 06289aabd78e6a0e5e5ab8360fffbf9a8504d615 | /api/invest/models/transaction.py | 342c13bf7856d7ec4bce1ae9e00023f054a8a0d5 | [] | no_license | jtclayt/finance_planner_api | 6ca8130c761999abc01e03429a0676c0c803b640 | 06cd592e479145cbeb6acad4574021ef7515b33b | refs/heads/main | 2023-08-15T02:20:34.455483 | 2021-09-22T16:15:49 | 2021-09-22T16:15:49 | 409,044,817 | 0 | 0 | null | 2021-09-22T05:08:48 | 2021-09-22T02:54:50 | Python | UTF-8 | Python | false | false | 711 | py | from django.db import models
from django.conf import settings
from .stock import Stock
class Transaction(models.Model):
shares_traded = models.DecimalField(max_digits=10, decimal_places=3)
trade_price = models.DecimalField(max_digits=10, decimal_places=2)
is_buy = models.BooleanField()
is_dividend = m... | [
"jt.clayton92@yahoo.com"
] | jt.clayton92@yahoo.com |
b10b8a73b89611e46c590467cf187ca9548decb6 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=25/params.py | 25f0ef0cf43f81e369cc8567f3cbc8c35f360f2b | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.531762',
'max_util': '2.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.65',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 25,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
05141e228132b443365c9116c670e487d5b806ef | 7fd21968dec8f39de7e18b5a5361e3466f17b259 | /customers/migrations/0004_auto_20170717_1451.py | 93e4536346408624529b832a1f113f55c81af941 | [] | no_license | endonte/icemansales2 | df917d676b24ba5bbf53ad14278f0f1807cd59f0 | 9451e84851df18daab8b0b1a8dd5826b5cf65db4 | refs/heads/master | 2021-01-01T04:02:35.466260 | 2017-07-30T10:42:26 | 2017-07-30T10:42:26 | 97,107,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-17 06:51
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.s... | [
"endonte88@gmail.com"
] | endonte88@gmail.com |
7614f7072c5895d4c26b0ac75c8d291cb3362419 | 44c7c2c7e43d353a8f83a417fd5e451bd3cb7b17 | /pizzeria/filters.py | 4155a4cbcd143f87baefb45e333defbf3cd6874b | [] | no_license | cyr1z/pizzeria | 82c200c79e2c54912bb6279b9a0640c502a9cc17 | 52804a2ebd8717676a2e8b69a1066ff820d21751 | refs/heads/master | 2023-04-16T15:49:27.451301 | 2021-04-11T10:12:26 | 2021-04-11T10:12:26 | 341,723,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | import django_filters
from .models import Food
# CHOICES = [
# ["title", _("title")],
# ["price", _("price")],
# ["-price", _("-price")]
# ]
class FoodFilter(django_filters.FilterSet):
title = django_filters.CharFilter(title='title', lookup_expr='icontains')
category__slug = django_filters.CharFi... | [
"cyr@zolotarev.pp.ua"
] | cyr@zolotarev.pp.ua |
338c795c383fd861eab8c7b5872f81b350125aee | b4b857a1a8c5fed1295f6e2304cca9a91c3e001d | /ipyresuse/_version.py | 0de839d277ee5b22b9e4fb7e6c3e78594cb8e9ed | [
"BSD-3-Clause"
] | permissive | hainm/ipyresuse | 6f8031bfc381e5fbea653ac511531d7d52aabb73 | ad36caf300fb18daab92279597b86cea95a5372d | refs/heads/master | 2020-07-05T19:35:01.539211 | 2019-07-24T08:29:05 | 2019-07-24T08:29:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) Jeremy Tuloup.
# Distributed under the terms of the Modified BSD License.
version_info = (0, 1, 0)
__version__ = ".".join(map(str, version_info))
| [
"jeremy.tuloup@gmail.com"
] | jeremy.tuloup@gmail.com |
48973c18c5eaba7ceebaf6d10ff2572126e0350c | 25a9f70ac09b84cf368920c9d6802d0965c6340e | /utensor_cgen/__main__.py | afe54cf53fb5464b723ed0a7f0e02558c9802dca | [
"Apache-2.0"
] | permissive | edoffagne/utensor_cgen | cd6be4a8251448263c968cc3db93cdaa90e02316 | 475e258928aca69e3e2a38255104ba101c3973ef | refs/heads/master | 2021-04-29T17:36:59.550518 | 2017-12-28T02:30:18 | 2017-12-28T02:30:18 | 121,673,684 | 0 | 0 | null | 2018-02-15T19:39:50 | 2018-02-15T19:39:50 | null | UTF-8 | Python | false | false | 1,563 | py | # -*- coding:utf8 -*-
# pylint: disable=C0301
import argparse
import os
from .core import CodeGenerator
def _main(pb_file, src_fname, idx_dir, embed_data_dir, debug_cmt):
if embed_data_dir is None:
embed_data_dir = os.path.join("/fs", idx_dir)
generator = CodeGenerator(pb_file, idx_dir, embed_data_dir, debug_... | [
"qmalliao@gmail.com"
] | qmalliao@gmail.com |
09b66b0ebc0acc27018cba753ae3d1568ef7f09d | 3e98a39995e0f58198d00023917247fd65a8d5be | /33/pool_pipe_celsius.py | c4eaadeaa4392036ea3ac4a331066e3916a50708 | [
"CC0-1.0"
] | permissive | marcusreaiche/cpython-book-samples | fd453ef76890a2c23b5f3dd8b4e32a2025399da8 | d61d252d63461b114c3c02329a88a74dc8c51956 | refs/heads/master | 2023-01-28T13:27:38.417534 | 2020-12-12T03:59:55 | 2020-12-12T03:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | import multiprocessing as mp
def to_celsius(child_pipe: mp.Pipe):
f = child_pipe.recv()
# time-consuming task ...
c = (f - 32) * (5/9)
child_pipe.send(c)
if __name__ == '__main__':
mp.set_start_method('spawn')
pool_manager = mp.Manager()
with mp.Pool(2) as pool:
parent_pipe, chil... | [
"anthony.p.shaw@gmail.com"
] | anthony.p.shaw@gmail.com |
4c41d600dda5e3b4793ee9c3e0166a0515143294 | 185bea7d9c7dc9288b021e0c27f24e087f668109 | /ProgrammingLanguage/Final/p8.py | 63b16c7df1665df0d373caaba901ddc3a2f36913 | [] | no_license | JasonVann/Udacity | 3430fa86d9863dd0c4657b525243a91154f4b57f | 9584bf90e8f1f9d4faf0973c7c36325f367558e7 | refs/heads/master | 2021-01-12T09:38:53.896396 | 2017-09-05T03:51:47 | 2017-09-05T03:51:47 | 76,217,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | # Discerning the Grammar
# Challenge Problem
#
# Focus: Units 3 and 4: Parsing and Memoization
#
#
# In this problem you are provided with the final chart that results from
# applying the parsing algorithm from class (i.e., Earley's algorithm)
# to a particular string of tokens.
#
# Your task is to reverse-enginee... | [
"jasonvanet@gmail.com"
] | jasonvanet@gmail.com |
186c733733990dcaa20c9ce3d2308bb3af0d79ad | cc64d03b132b773acae845c52f41fcdcdcaee273 | /test/functional/combine_logs.py | 8205f693905373f1cfbf283c16c47e0b92b15451 | [
"MIT"
] | permissive | phlsolo316/vidcoin | aa9aae1e0f2215edadd2df89e1c9b6669abbce76 | d6eec232378c329ebc2a31e7d21acf58cf62368d | refs/heads/main | 2023-05-26T05:01:32.379060 | 2021-06-07T02:46:07 | 2021-06-07T02:46:07 | 373,622,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,790 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Combine logs from multiple vidcoin nodes as well as the test_framework log.
This streams the combined ... | [
"36169687+blockinator@users.noreply.github.com"
] | 36169687+blockinator@users.noreply.github.com |
947aa7ea5392ff5af37165e2f2adf7084208a17c | b5d968f0436f29a92be7fbaf9b8ee19f698f3b20 | /array/bubble_sort.py | 01ea99d909845b62d8dbde141143082df254b8c3 | [] | no_license | asperaa/programming_problems | 35a2504c6f114812c1cb938f7df1486e84a66636 | d055d93dfb9f7945a4250663a58d0dd0231f2353 | refs/heads/master | 2020-06-02T02:20:09.793839 | 2019-12-05T10:14:42 | 2019-12-05T10:14:42 | 191,003,597 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """Bubble sort in an array"""
def swap(arr, i, j):
temp = arr[j]
arr[j] = arr[i]
arr[i] = temp
return arr
def bubble_sort(arr):
length = len(arr)
for i in range(0, length):
for j in range(0, length-1):
if arr[j] >= arr[j+1]:
arr = swap(arr, j, j+1)
retu... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
83dc9fb3dbe1ab3208891adb9d9961eb6e44093d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_170/ch165_2020_06_21_20_00_52_305248.py | 75eaef65a3ba9172f8b499ce0a4cda5eb58e06d7 | [] | 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 | 209 | py | def mais_populoso(dic):
popTotal = {}
for i,a in dic.items():
soma = 0
for v in a.values():
soma += v
popTotal[i] = soma
return max(popTotal, key = popTotal.get) | [
"you@example.com"
] | you@example.com |
f19d8aa2104240cc93a0146f1b14c635e7cd3a41 | 7365e5438f68eca8f9f09dfeabf187b672bf8c63 | /fit_SIS.py | 4eb2b3feb387fd8f911d2d644d952ae576328fb4 | [
"MIT"
] | permissive | arwright3/wtgpipeline | dc161317088e4ceaa5eb4760cbc4bd7cb778957e | cd543873fdc2a4040aa2158aef5709b7d65525c0 | refs/heads/master | 2021-07-12T07:35:03.501764 | 2017-10-17T17:35:15 | 2017-10-17T17:35:15 | 106,625,068 | 1 | 0 | null | 2017-10-12T00:36:35 | 2017-10-12T00:36:35 | null | UTF-8 | Python | false | false | 2,529 | py | #! /usr/bin/env python
import ldac
from numpy import *
import shearprofile as sp
import sys
import os, subprocess
import pylab
if len(sys.argv) != 6:
sys.stderr.write("wrong number of arguments!\n")
sys.exit(1)
catfile= sys.argv[1]
clusterz=float(sys.argv[2])
center= map(float,sys.argv[3].split(','))
pixsc... | [
"dapple@xoc7.stanford.edu"
] | dapple@xoc7.stanford.edu |
70b4c3b584a5be3198bb47d618fd16db50b1a51c | cdb3ff38495393a593cf493a02eddec392e1f512 | /ChineseStock/src/calculate_return_utils/calculate_return_utils_20170212.py | 16c6f540f7ace8875cc56feba99c280669d3016b | [] | no_license | moming2k/TradingProjects | a17e3df6b959c973c8e586255f064326270c0e78 | 20104aa5f20cde02486d3143e5b3c341e8bf3b81 | refs/heads/master | 2021-03-27T08:48:55.714380 | 2017-10-31T09:16:25 | 2017-10-31T09:16:25 | 93,304,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,272 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Filename: calculate_return_utils_20170212
# @Date: 2017-02-12
# @Author: Mark Wang
# @Email: wangyouan@gmial.com
import datetime
import multiprocessing
import os
from ..constants import Constant as const
from ..constants.constants import holding_days_list, portfolio_n... | [
"wangyouan0629@hotmail.com"
] | wangyouan0629@hotmail.com |
133641daa3f8175badd544f502f9c95eafa71215 | 2e43fc58f2a70b38c8f74101d639d1ad6fffb609 | /ParadoxTrading/EngineExt/Futures/__init__.py | cd0d6be5e6ddf2d1e07df05c8dc5417cb975f631 | [
"MIT"
] | permissive | ppaanngggg/ParadoxTrading | 9cac27dee26a49739dde661c1e03d83bda09df9b | 2c4024e60b14bf630fd141ccd4c77f197b7c901a | refs/heads/master | 2021-05-11T20:13:14.871616 | 2018-07-13T05:49:15 | 2018-07-13T05:49:15 | 117,434,771 | 96 | 26 | MIT | 2018-03-21T08:47:27 | 2018-01-14T13:57:16 | Python | UTF-8 | Python | false | false | 805 | py | from .Arbitrage import ArbitrageEqualFundSimplePortfolio, \
ArbitrageEqualFundVolatilityPortfolio, ArbitrageStrategy
from .BarBacktestExecution import BarBacktestExecution
from .BarPortfolio import BarPortfolio
from .InterDayBacktestExecution import InterDayBacktestExecution
from .InterDayOnlineEngine import InterD... | [
"hantian.pang@gmail.com"
] | hantian.pang@gmail.com |
5d620235fb906cad240dfd39e621036eaa7592c6 | f77028577e88d228e9ce8252cc8e294505f7a61b | /web_backend/nvlserver/module/hw_module_user_position/model.py | 8ccb2216a506dc84d9106f6db0eea0bb6de56cfa | [] | no_license | Sud-26/Arkally | e82cebb7f907a3869443b714de43a1948d42519e | edf519067d0ac4c204c12450b6f19a446afc327e | refs/heads/master | 2023-07-07T02:14:28.012545 | 2021-08-06T10:29:42 | 2021-08-06T10:29:42 | 392,945,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__version__ = '1.0.1'
from web_backend.nvlserver.module import nvl_meta
from sqlalchemy import BigInteger, String, Column, Boolean, Table, ForeignKey, DateTime, func
from geoalchemy2.types import Geometry
from sqlalchemy.dialects.postgresql import JSONB
hw_module_user_... | [
"sudhakar@satmatgroup.com"
] | sudhakar@satmatgroup.com |
ba9bd2bf2220439ed0d428362df583b6b3f9acc7 | 650693ccd236939f1668081411427480af8a23c1 | /polyglotexchange/users/backend.py | b6757f57e5aabf390a5320b0498776fce54b1346 | [] | no_license | Verurteilt/polyglotexchange | e222742bfd685e2ef9e8a2a6a110dc9c0efe0ad7 | 3e6ac9f322ed5c822fbec35f2a2f1eba52080d68 | refs/heads/master | 2022-02-20T17:22:23.327153 | 2015-10-10T02:01:27 | 2015-10-10T02:01:27 | 41,082,464 | 0 | 0 | null | 2022-01-21T19:00:19 | 2015-08-20T07:41:51 | JavaScript | UTF-8 | Python | false | false | 454 | py | from users.models import User
class UsernameBackend(object):
def authenticate(self, username, password):
try:
if("@" in username):
user = User.objects.get(email=username)
else:
user = User.objects.get(username=username)
if user.check_password(password):
return user
except:
return No... | [
"mini.guero@hotmail.com"
] | mini.guero@hotmail.com |
1c9b09989ebcae3f9c9d7100aa6eeab2616385a9 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/aprovepsecgrpmaxp.py | 1d01a50fd7fd43e74fbc604087cf796c69cb7bb9 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
68265015f212d9b4464d5aaee4aa568c3eea0aaa | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/avs/v20210101preview/get_authorization.py | 47f0b759edd815a1bf123c005091b43cf566689f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,912 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
0ab26d68c6cd78d18077ca5e7962008ff29350be | c4a57dced2f1ed5fd5bac6de620e993a6250ca97 | /huaxin/ui_ios_xjb_1_8_unit_test/MainController.py | eca49fefc8865bec9f3b3237ece7c9da19046f45 | [] | no_license | wanglili1703/firewill | f1b287b90afddfe4f31ec063ff0bd5802068be4f | 1996f4c01b22b9aec3ae1e243d683af626eb76b8 | refs/heads/master | 2020-05-24T07:51:12.612678 | 2019-05-17T07:38:08 | 2019-05-17T07:38:08 | 187,169,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | # coding: utf-8
import inspect
import os
import re
import sys
from ui_ios_xjb_1_8_unit_test.xjb_1_8_unit_test import UiIosXjb18UnitTest
class MainController(
UiIosXjb18UnitTest
):
ROBOT_LIBRARY_SCOPE = 'TEST SUITE'
| [
"wanglili@shhxzq.com"
] | wanglili@shhxzq.com |
e92ca40ac312b03f174430fe59aa0df0ad50903a | f96917be757e76e2465d60dd4e681243f5cee773 | /tests/test_scikit/test_rasa_classifier.py | df3993c01ee7e4f4bfdd019da76df62410b2f1a7 | [
"Apache-2.0"
] | permissive | souvikg10/rasa-nlu-examples | 051d6040a03bdb934e142d97a02f91564d9c69bc | 553a6461949f57232601e778fccdff74a488e0cd | refs/heads/main | 2023-03-01T12:12:12.992024 | 2021-02-12T17:57:09 | 2021-02-12T18:00:03 | 338,384,403 | 0 | 0 | Apache-2.0 | 2021-02-12T17:19:31 | 2021-02-12T17:19:30 | null | UTF-8 | Python | false | false | 631 | py | from rasa_nlu_examples.scikit import RasaClassifier
from rasa.train import train_nlu
def test_base_predict():
mod = train_nlu(
nlu_data="tests/data/nlu/en/nlu.md",
config="tests/configs/printer-config.yml",
output="models",
)
clf = RasaClassifier(model_path=f"{mod}")
clf.class... | [
"vincentwarmerdam@gmail.com"
] | vincentwarmerdam@gmail.com |
6957caea7413285bfc3b1c7a2bdb9981503f70f6 | 57775b4c245723078fd43abc35320cb16f0d4cb6 | /Data structure/linked-list/delete-a-node.py | 6675da9c13f9d97fc0f2e28bcf9647e99b250d1c | [] | no_license | farhapartex/code-ninja | 1757a7292ac4cdcf1386fe31235d315a4895f072 | 168fdc915a4e3d3e4d6f051c798dee6ee64ea290 | refs/heads/master | 2020-07-31T16:10:43.329468 | 2020-06-18T07:00:34 | 2020-06-18T07:00:34 | 210,668,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | """
Given a ‘key’, delete the first occurrence of this key in linked list.
To delete a node from linked list, we need to do following steps.
1) Find previous node of the node to be deleted.
2) Change the next of previous node.
3) Free memory for the node to be deleted.
"""
class Node:
def __init__(self, data):
... | [
"farhapartex@gmail.com"
] | farhapartex@gmail.com |
00290e0dad10ee22bc36d4611a940e1845bc0dd1 | 337a5860869579bb5baad5b20592add7df64724c | /qweecoco/QWEECOCO/urls.py | 11895b48f0a69ee3bf02226dd29597e6c98f2e04 | [] | no_license | Features12/Qweeco_Project | 592e581c99e8debcbbe09d135cdd0f56588248ea | 83f1a359c9ae4c57ac41011068f8f46ce27030b1 | refs/heads/master | 2021-01-20T08:20:21.901369 | 2017-05-11T12:49:46 | 2017-05-11T12:49:46 | 87,444,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | # -*- coding: utf-8 -*-
"""QWEECOCO URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.hom... | [
"features.inna@mail.ru"
] | features.inna@mail.ru |
93e11f081203c198d5c887a40944ad4f0961ee22 | ff5d91e9eee4dd41e85d418120f11daec71cf93b | /2016/nazionali/aeroporto/gen/valida.py | f45b06102073e937f2788d6ff4a6087e3d9bb451 | [] | no_license | olimpiadi-informatica/oii | d0023c5fa00100cadc6a13b1e153fca0017177ca | ce6bc7e8b40a32c01611f4b20ee72f8a9318eafd | refs/heads/master | 2021-05-16T02:35:15.742339 | 2020-03-14T21:56:18 | 2020-03-14T21:56:18 | 28,759,072 | 31 | 6 | null | 2019-12-15T12:37:53 | 2015-01-04T00:55:52 | C++ | UTF-8 | Python | false | false | 888 | py | #!/usr/bin/env pypy
from limiti import *
import sys
import os
def usage():
print >> sys.stderr, "Usage: %s file_input.txt [subtask_number]" % \
os.path.basename(sys.argv[0])
exit(1)
# 0 -> corretto
# altro numero -> non corretto
# per testare la correttezza dell'input, usate assert()
def... | [
"williamdiluigi@gmail.com"
] | williamdiluigi@gmail.com |
1e8fef4cf01a182c5d263ed91a87e68c88f86da3 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc029/D/4743880.py | d6316dde82ff3af6cebb749519dd97afcb7b9c28 | [] | 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 | 473 | py | N=[int(x) for x in list(input())]
digit=len(N)
DP=[[[0]*(digit+1) for _ in range(2)] for _ in range(digit+1)]
DP[0][0][0]=1
for d in range(digit):
for less in range(2):
for num in range(digit):
limit=9 if less else N[d]
for l in range(limit+1):
DP[d+1][less o... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
24fabd1e039af95841cba9b8fe97c340959d9da3 | 3eb0de09c264f7d5e4e9e0bc0ab3debbffecd216 | /lmfit_inequality_2pt_orig_example.py | 5864d5d8bef335df1c6319682b65fdfbfec7b69d | [
"BSD-3-Clause"
] | permissive | bsoher/lmfit_examples | 20aede90a621e1a35cbb04ca6d3d10e64b93167b | 2e1a68278622209395edf20c7e3f5e9e29ef8002 | refs/heads/main | 2023-03-30T02:22:34.227193 | 2021-04-04T00:27:37 | 2021-04-04T00:27:37 | 354,057,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | """
Fit Using Inequality Constraint
===============================
NB. bjs, this is the original example on which many of the others are based.
Sometimes specifying boundaries using ``min`` and ``max`` are not sufficient,
and more complicated (inequality) constraints are needed. In the example below
the center of th... | [
"bsoher@briansoher.com"
] | bsoher@briansoher.com |
88f0811437da2a9be123a8569e620d6d5133f8b4 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/spyder_terminal/server/logic/__init__.py | 70bc748f00aef71f3503c4ad01b18f93fbe081a7 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
"""
logic module.
=========
Provides:
1. Creation and handling of system terminal emulators
2. Execution of bash/cmd commands
How to use the documentation
----------------------------
Documentation is available in one form: docstrings provided
with the code
Copyright (c) 2016, Edgar ... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
8374eba08938956a81744c864b8d35679cea30dd | df77f5aaffbbb927d850140b2fa1eaa9a71d2cf9 | /autograde/envs/codeorg/BounceVecEnv.py | 34880dfd15a266981139916a66f3eb589d9dac74 | [] | no_license | windweller/AutoGrade | 9fcf2d38a1d89acf203696bbc6c1d0e4ac86b8b0 | 0ecf3948d3b3dd8f246a749ce4a6494ec3965821 | refs/heads/main | 2021-06-20T13:24:53.592782 | 2021-05-21T06:42:52 | 2021-05-21T06:42:52 | 211,726,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,420 | py | import gym
import gym.spaces
from gym.envs.classic_control import rendering
from stable_baselines.common.vec_env import VecEnv
import numpy as np
import requests
import json
import os
import matplotlib.pyplot as plt
import time
import autograde.envs.codeorg.util as util
import subprocess
BOUNCE_RES_H = 400
BOUNCE_RES... | [
"leo.niecn@gmail.com"
] | leo.niecn@gmail.com |
c65e75c72d3db6106bd1a0ee8f435b7933a6f9af | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/lookin/entity.py | 1c641b76f32d2cf8b4c54fc6dd67e040b5f8e11e | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 6,566 | py | """The lookin integration entity."""
from __future__ import annotations
from abc import abstractmethod
import logging
from typing import cast
from aiolookin import POWER_CMD, POWER_OFF_CMD, POWER_ON_CMD, Climate, Remote
from aiolookin.models import Device, UDPCommandType, UDPEvent
from homeassistant.helpers.entity i... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
3f8f1ef3565468cf27443d974572fa135e9b5152 | 40699a136c4f4500833e21e0d7863a1ba624a5cd | /pde/fields/tests/test_tensorial_fields.py | e02aad7d33d9b724f38585b3a8c0409d2f8714b4 | [
"MIT"
] | permissive | binder-oilgains/py-pde | 0e0226678b2598b50aa72762d9a70bb8e9536e43 | d76977095f1e915c63230e6895391f063d0778d8 | refs/heads/main | 2023-02-23T09:09:05.543386 | 2021-02-02T00:55:40 | 2021-02-02T00:55:40 | 334,454,351 | 0 | 0 | MIT | 2021-01-30T16:09:14 | 2021-01-30T16:09:13 | null | UTF-8 | Python | false | false | 6,217 | py | """
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
"""
import numpy as np
import pytest
from pde import CartesianGrid, ScalarField, Tensor2Field, UnitGrid
from pde.fields.base import FieldBase
def test_tensors():
""" test some tensor calculations """
grid = CartesianGrid([[0.1, 0.3], [-2, 3]], [3, 4... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
973eb71e1f6abf9e8c489a2840b5f97b5bb84286 | 55f6688c35b7be4e26d039e5ec09589d9eed4fe0 | /tps/encuestas/app/encuestas/migrations/0004_encuesta_fecha_expiracion.py | 00f4ad8836273e9c2c72bb6fae1fdecb1076a883 | [] | no_license | dlitvakb/analisis_sistemas_palermo | 0a7e35f9c983eb658b8ffda861f98cec2737f87f | 2a3b8dd6d8d1a9b3b8f391b09eccd8688dcd47cc | refs/heads/master | 2020-03-30T15:48:13.193854 | 2015-06-15T19:54:51 | 2015-06-15T19:54:51 | 31,598,756 | 1 | 1 | null | 2015-04-20T23:19:47 | 2015-03-03T13:06:07 | Python | UTF-8 | Python | false | false | 416 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('encuestas', '0003_encuesta_descripcion'),
]
operations = [
migrations.AddField(
model_name='encuesta',
... | [
"david.litvakb@gmail.com"
] | david.litvakb@gmail.com |
f0ee6baa1232692af28acfaad4590d395fb65e76 | f2a2f41641eb56a17009294ff100dc9b39cb774b | /old_session/session_1/_167/_167_two_sum_2_input_array_is_sorted.py | d60387e15e3178aa181a4b6f6b2a418d75a11f2e | [] | no_license | YJL33/LeetCode | 0e837a419d11d44239d1a692140a1468f6a7d9bf | b4da922c4e8406c486760639b71e3ec50283ca43 | refs/heads/master | 2022-08-13T01:46:14.976758 | 2022-07-24T03:59:52 | 2022-07-24T04:11:32 | 52,939,733 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | """
167. Two Sum II - Input array is sorted
Given an array of integers that is already sorted in ascending order,
find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target,
where index1 must be less than index2.... | [
"yunjun.l33@gmail.com"
] | yunjun.l33@gmail.com |
65ae8c4232a8f375b7a2cf0fc3abeda8c804a126 | b3cd00de3608e5225758bb99b28d58320ce81a47 | /python_exmple/anthor_celsius_switch_fahrenheit.py | f1d41765ae00ca37ea9150028f38599917c40a4a | [] | no_license | buyi823/learn_python | fc4ec7e35ec421842975956933cfb56371786d7a | b411d5277dba1764d421a267f0ba36da40d8c6e9 | refs/heads/master | 2022-05-13T01:05:35.961946 | 2022-05-09T15:20:52 | 2022-05-09T15:20:52 | 71,314,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!usb/bin/python3
# -*- coding: UTF-8 -*-
a = input("请输入带有符号的温度值: ")
if a[-1] in ['F', 'f']:
C = (eval(a[0:-1]) - 32) / 1.8
print("转换后的温度是{:.1f}C".fomat(C))
elif a[-1] in ['C', 'c']:
F = 1.8 * eval(a[0:-1]) + 32
print("转换后的温度是{:.1f}F".format(F))
else:
print("输入格式错误") | [
"309521086@qq.com"
] | 309521086@qq.com |
0251c2a402b54da965a36f4f2b3f8e0329935550 | 122f9bf0d996c104f541453ab35c56f6ff3fc7cd | /z수업용문제/JunminLim/16968.py | 84d51a16e606cef0fe14c34d6647496b55cdb7b7 | [] | no_license | JannaKim/PS | 1302e9b6bc529d582ecc7d7fe4f249a52311ff30 | b9c3ce6a7a47afeaa0c62d952b5936d407da129b | refs/heads/master | 2023-08-10T17:49:00.925460 | 2021-09-13T02:21:34 | 2021-09-13T02:21:34 | 312,822,458 | 0 | 0 | null | 2021-04-23T15:31:11 | 2020-11-14T13:27:34 | Python | UTF-8 | Python | false | false | 252 | py | x=list(input())
y=1
previous = -1
a =10
b= 26
for i in range (len(x)):
if previous == x[i]:
a=9
b=25
else:
a=10
b=26
if x[i]=='c':
y=y*b
if x[i]=='d':
y=y*a
previous= x[i]
print(y) | [
"baradamoh@gmail.com"
] | baradamoh@gmail.com |
c9cfe0d12d69a51291e154d5f043976c0e101115 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_tinkle.py | 2c4752b46d71df381dbe7d2fca6d06b7b412dfe7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py |
#calss header
class _TINKLE():
def __init__(self,):
self.name = "TINKLE"
self.definitions = [u'a light ringing sound: ', u'to make a phone call to someone: ', u'an act of urination']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, o... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
af0ee987c6137d7012ac3582b116be53b6ff6423 | 48d232cc6dcf57abf6fca9cbbef8943e189acb04 | /split-array-largest-sum.py | 0b7855d0b1eb86cb9dfc52b7b23a072875875f89 | [] | no_license | csusb-005411285/CodeBreakersCode | dae796ba4262770e0a568e9c27597a041db0775c | 8f218164e1b9e42c1a928d22ef5a76328abb66a2 | refs/heads/master | 2022-01-12T09:11:33.668338 | 2021-12-27T04:45:13 | 2021-12-27T04:45:13 | 232,490,141 | 1 | 1 | null | 2021-01-29T23:09:14 | 2020-01-08T06:02:11 | Python | UTF-8 | Python | false | false | 1,227 | py | class Solution:
def splitArray(self, nums: List[int], m: int) -> int:
# init vars
left = max(nums)
right = sum(nums)
# check for invalid inputs
if m == 1:
return sum(nums) # 3
# binary search
while left < right:
mid = left + (right - le... | [
"noreply@github.com"
] | csusb-005411285.noreply@github.com |
2441989c300cb7a3887af70d7b0896e65e2864c6 | f40fa48e56d3e1166b46ba4951a5dea69e806115 | /examples/01_create_dashboard.py | cce3946cc7b3f63169308e8e4ae07929c1e4eaac | [] | no_license | FanapSoft/pod-dashboard-python-sdk | ba6547a6b8330c0dd3b9f8f513298cd0b73960dd | 6a5c5e9ca20245aa8697725068c08f3c118dc410 | refs/heads/master | 2022-10-05T23:02:15.086469 | 2020-04-28T12:22:31 | 2020-04-28T12:22:31 | 258,860,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # coding=utf-8
from __future__ import unicode_literals
from pod_base import APIException, PodException
from examples.config import *
from pod_dashboard import PodDashboard, DashboardException
try:
pod_dashboard = PodDashboard(api_token=API_TOKEN, server_type=SERVER_MODE)
print(pod_dashboard.create_dashboard(n... | [
"rz.zare@gmail.com"
] | rz.zare@gmail.com |
97e4794ee9c9613cf1af909948de862d60f8a2ae | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_226.py | 35000114acfb2a51c02f1892acb81c67d1345350 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | # ZipFile complains, is there a way around using the zipfile module?
zippedfile = open('%stemp/tempfile.zip' % settings.MEDIA_ROOT, 'wb+')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
45b11232a6489c0404c54b56753ab994e36395f7 | 3a8f0ad33029e779fca5973789d7a99ac4ea47d3 | /main/migrations/0017_auto_20201014_1746.py | 71c1c16113aa9024a5bd9fd467eba93dc48694fe | [] | no_license | yurakgn/MiniStorage | 7816928553346dc5cdb1be0e887301d132f9eb3b | 6b267d8af237683d011da41757591e8f3b7e06da | refs/heads/master | 2023-03-25T09:32:15.748467 | 2020-10-21T16:37:16 | 2020-10-21T16:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # Generated by Django 3.1 on 2020-10-14 14:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0016_documentitem_document'),
]
operations = [
migrations.AlterField(
model_name='product',
name='description'... | [
"it.sergeyler@mail.ru"
] | it.sergeyler@mail.ru |
74f06cdaec6cea4872a849d89f16079caab6013a | 7c08f711bd38f7236aa990bdce0642d9c8545702 | /testsuite/websockets/servers/test_autobahn.py | 24cddc6027ec008a36564a6603ae3586dead052e | [
"Apache-2.0"
] | permissive | vbohinc/AutobahnHackedForWebSocket00 | 2dcb00cfb3959617b35c529039324a1cfcbc838a | 7f09608d9c6567bf8fc3dbe21284f7c39db9067f | refs/heads/master | 2020-09-16T10:10:30.333652 | 2011-10-11T21:04:42 | 2011-10-11T21:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | ###############################################################################
##
## Copyright 2011 Tavendo GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## ht... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
2d7f93dc163834064402f7a043a61cd2690095b5 | 93966e5245040be88ded59c4f0213b2af2f7c455 | /solution1.py | 31f6ba80ab915813d76660715625c168a5c50e99 | [] | no_license | LeetCodeSolution/Fibonacci | 166ccac43de5e932c0bfceec9583d87a06645c95 | dccaf2632b491d05c62bc8d56e4a17bf85c821a2 | refs/heads/master | 2020-03-26T20:12:32.044686 | 2018-08-19T14:33:04 | 2018-08-19T14:33:04 | 145,310,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | def result(n):
if n == 0:
return 0
if n == 1:
return 1
return result(n - 1) + result(n - 2)
if __name__ == '__main__':
print(result(9))
| [
"cqc@cuiqingcai.com"
] | cqc@cuiqingcai.com |
94d300aa9b93375f26b682daa28bbe173ff0ae69 | 5a178ad7960b4b2e96a44c9a9069f7317083ba42 | /pro_restful/urls.py | 72eb3e9c1e96b3a4e4c92e908e2f68062e27c4db | [] | no_license | piaoyangguo/restful | efae072874cfcc93f8ceb8eda9a8f9774e435bb2 | d72137e74fca640c71c83e0fc571503a674208f7 | refs/heads/master | 2021-07-17T23:00:10.059383 | 2017-10-23T06:48:04 | 2017-10-23T06:48:04 | 107,942,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | """pro_restful URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"173077850@qq.com"
] | 173077850@qq.com |
d9c8165efc028e351ed586df8df235ee17318b38 | f416ab3adfb5c641dc84022f918df43985c19a09 | /problems/kattis/lektira/sol.py | fee4244ad570b8786b6108ea77b36e3b06e1d588 | [] | no_license | NicoKNL/coding-problems | a4656e8423e8c7f54be1b9015a9502864f0b13a5 | 4c8c8d5da3cdf74aefcfad4e82066c4a4beb8c06 | refs/heads/master | 2023-07-26T02:00:35.834440 | 2023-07-11T22:47:13 | 2023-07-11T22:47:13 | 160,269,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | if __name__ == "__main__":
WORDS = []
s = input()
for i in range(1, len(s) - 1):
for ii in range(i + 1, len(s)):
a, b, c = s[:i], s[i:ii], s[ii:]
WORDS.append(a[::-1] + b[::-1] + c[::-1])
WORDS.sort()
print(WORDS[0])
| [
"klaassen.nico@gmail.com"
] | klaassen.nico@gmail.com |
bb6f0928de458928c04cc22460ffe9575b3fcde1 | b7f25449c2baae8823f1307e134a775d6ab64272 | /0x01-python-if_else_loops_functions/7-islower.py | fb501a74e379435e3945cf80384beb92324f9d3c | [] | no_license | BahruDa/alx-higher_level_programming-2 | 85f5155328750430949d49e8d2d27761c71360fe | 047d1dd0dec5e942e9c638d0e4cc5fc985061b56 | refs/heads/main | 2023-08-15T03:07:14.699713 | 2021-09-22T23:30:52 | 2021-09-22T23:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | #!/usr/bin/python3
def islower(ch):
if ord(ch) >= 97 and ord(ch) <= 122:
return True
else:
return False
| [
"BiniyamMelaku2@gmail.com"
] | BiniyamMelaku2@gmail.com |
dd5c432e1c76285f0dae96fe8858964e3d5cd68d | 3917f9af3ca26b92fa67da2f6f32ec860a95d556 | /抓取抖音小姐姐/utils/device_utils.py | 9a4a2467f49096c64deeb36f931924b8ba03d0e0 | [] | no_license | KingsleyDeng/CoolPython | 8be8b34451bb4e5c9b0a1f994f78dbdf098526c4 | f7ccc1f4eb2816af1b7a9c471c8554e9018c2d02 | refs/heads/master | 2021-07-21T14:18:01.095775 | 2020-07-24T07:52:47 | 2020-07-24T07:52:47 | 199,973,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | import os
from PIL import Image
import time
import re
def find_devices():
rst = os.popen('adb devices').read()
devices = re.findall(r'(.*?)\s+device', rst)
if len(devices) > 1:
return devices[1:]
else:
# raise Exception('DeviceNotFound')
return []
def kill_app(package_name):
... | [
"460556933@qq.com"
] | 460556933@qq.com |
e7e8dcb8f63f5f3e402129590db63ab2492fb916 | 2322786b2594bc4103333a874cc4565160dabd56 | /harmony_tools/cli/categories/pentatonics/detect.py | 042fd6e3173541bc4f5a1e2f38d8af5d9def905f | [
"MIT"
] | permissive | a1fred/harmony_tools | fa12aa26fef8c238040506e5b89a238d945c67a9 | 9933fe899af7a8e7f490f61d58004bb59f03271c | refs/heads/master | 2020-04-05T13:46:15.075961 | 2018-12-04T16:46:18 | 2018-12-04T16:46:18 | 156,908,862 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from typing import List
from harmony_tools import notes, pentatonics
from harmony_tools.cli.categories.gammas.detect import Command as GDCommand
PENTS = [x for x in dir(pentatonics) if isinstance(getattr(pentatonics, x), tuple) and not x.startswith("__")]
class Command(GDCommand):
command = 'detect'
help = ... | [
"demalf@gmail.com"
] | demalf@gmail.com |
c95fe027416aaa650da42a890e74444ebe3eaa27 | 3b09427cb95bf1b5cefd7903fa3fcf4399df10a0 | /01_Data_Stuctures/02_Linked_List/07_occurence_of_integer.py | efc69320119e4b008b6973f00d3deed7e215bce5 | [] | no_license | ed18s007/Geeksforgeeks_practice | 433c169b362c263b2728474224085882db508b67 | c33478f623b30a178db4b835c31f6f067dd62e51 | refs/heads/master | 2022-10-22T06:51:00.685194 | 2020-06-17T04:30:13 | 2020-06-17T04:30:13 | 265,777,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | """
int count(struct node* head, int search_for)
{
int cnt=0;
struct node *current_node;
current_node = head;
while(current_node)
{
if(current_node->data == search_for){
cnt = cnt + 1;
}
current_node = current_node->next;
}
return cnt;
}
"""
def count(head, search_for):
# Code here
current_n... | [
"ed18s007@smail.iitm.ac.in"
] | ed18s007@smail.iitm.ac.in |
41e0f92448648467a0622994f4f88f5c61bf8c93 | ddfeb39a9e14d71a5aabf48c6f29fd9ed3b9347b | /examples/providers/abstract_factory/cache.py | 51cdc3c2509f77b888d38e808370498aff2d822c | [] | permissive | kinow/python-dependency-injector | ecaca1b1f67e29d4fe2f7594b690232b85a1dfc9 | ebd98bebe9a8fc0b57e68cfc12c4979833baa6a5 | refs/heads/master | 2022-11-07T14:44:56.444879 | 2020-02-18T22:53:10 | 2020-02-18T22:53:10 | 271,928,677 | 0 | 0 | BSD-3-Clause | 2020-06-13T02:48:35 | 2020-06-13T02:48:34 | null | UTF-8 | Python | false | false | 647 | py | """Example hierarchy of cache clients with abstract base class."""
class AbstractCacheClient:
"""Abstract cache client."""
class RedisCacheClient(AbstractCacheClient):
"""Cache client implementation based on Redis."""
def __init__(self, host, port, db):
"""Initialize instance."""
self.h... | [
"rmogilatov@gmail.com"
] | rmogilatov@gmail.com |
308a833a127afb963eaabb3a02a92313c3e05106 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/nlp/metrics/dialogue_metrics.py | 7330a1c906113cf2a56f5c93aac0d2cbdb0cb035 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 7,110 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright 2019 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.a... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
c610ea6b7fcf7d02cf037ed1a4ab7c8d64dde57a | a38180435ac5786185c0aa48891c0aed0ab9d72b | /S4/S4 Library/simulation/sims/swim_location_test.py | 0251eb58e20bd7779310d67a0e03c2412a75c2f0 | [
"CC-BY-4.0"
] | permissive | NeonOcean/Environment | e190b6b09dd5dbecba0a38c497c01f84c6f9dc7d | ca658cf66e8fd6866c22a4a0136d415705b36d26 | refs/heads/master | 2022-12-03T13:17:00.100440 | 2021-01-09T23:26:55 | 2021-01-09T23:26:55 | 178,096,522 | 1 | 1 | CC-BY-4.0 | 2022-11-22T20:24:59 | 2019-03-28T00:38:17 | Python | UTF-8 | Python | false | false | 3,093 | py | from event_testing import test_base
from event_testing.results import TestResult
from event_testing.test_events import cached_test
from interactions import ParticipantTypeSingle
from routing import SurfaceType
from sims4.tuning.tunable import HasTunableSingletonFactory, AutoFactoryInit, TunableEnumEntry, TunableVariant... | [
"40919586+NeonOcean@users.noreply.github.com"
] | 40919586+NeonOcean@users.noreply.github.com |
abf5eaa8b9f8c282270922f74fde75a5cf1fe135 | a6719f4815ff41d3a1f09e9a63a64c4582d03702 | /condition_and_loop/iterator.py | 822fc1f9de64616f13083207f0c3e8c866bb5382 | [
"MIT"
] | permissive | thanh-vt/python-basic-programming | 8136007b8435dae6339ae33015fe536e21b19d1d | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | refs/heads/main | 2023-01-30T12:57:36.819687 | 2020-12-13T17:27:05 | 2020-12-13T17:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | tuple1 = ('apple', 'banana', 'cherry')
iter1 = iter(tuple1)
print(next(iter1))
print(next(iter1))
print(next(iter1))
string = 'banana'
iter2 = iter(string)
print(next(iter2))
print(next(iter2))
print(next(iter2))
print(next(iter2))
print(next(iter2))
print(next(iter2))
| [
"thanhvt@vissoft.vn"
] | thanhvt@vissoft.vn |
9b7a64f4e87663ed39006edafe51e340641a489d | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /vedat/dist/analyzer/gupnp-igd/actions.py | 752ed0d29748cb0c4996747efddbfc267c8f60f2 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 757 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
shelltools.expor... | [
"vedat@pisi_linux1.0"
] | vedat@pisi_linux1.0 |
8a40ff82f19dd3f3c5db15a1f9ba8e7490d68740 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/creature/Pig.py | a16b5349fb07ac02422a17180ea4e0f473b8543a | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | from pandac.PandaModules import *
from direct.directnotify import DirectNotifyGlobal
from pirates.creature.Animal import Animal
class Pig(Animal):
ModelInfo = ('models/char/pig_hi', 'models/char/pig_')
SfxNames = dict(Animal.SfxNames)
SfxNames.update({ })
AnimList = (('walk', 'walk'), ('run', 'walk'), ... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
b46e240c695beef32ffe6b8ca17e5dd6a55cdf37 | 29f1607dd7a9ce854312fb5771600d0dfa7c3bf2 | /apps/order/urls.py | ebdbaf83c28b1ac8a2f4ed0e02ac2dedc207e1b3 | [] | no_license | ForhadIsrafil/class-four | 5e3a1a6a3b14959625aae11d26b17591049d23b9 | e38026e5294b87bf7bf44946831aac88907febd5 | refs/heads/master | 2022-03-31T10:04:11.255224 | 2020-01-23T16:57:05 | 2020-01-23T16:57:05 | 235,840,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | from django.urls import path
from .views import *
import django
from django.conf import settings
from django.conf.urls import url
app_name = 'order'
urlpatterns = [
path(
r'accounts/<uuid:id>/ordernumbers',
OrderNumberView.as_view({'post': 'create'}),
name='order_number'
),
path(
... | [
"forhadtuhin5088@gmail.com"
] | forhadtuhin5088@gmail.com |
18e4537ddf7d7782a3016297c104ecfa49fc3a88 | f0a4ba1f1f941092e68e4b1ef9cff0d3852199ef | /이것이코딩테스트다/다이나믹프로그래밍/피보나치수열재귀메모이제이션.py | 39892f57f5d4a47f442f7edaab0a2a589bf603b0 | [] | no_license | lsb530/Algorithm-Python | d41ddd3ca7675f6a69d322a4646d75801f0022b2 | a48c6df50567c9943b5d7218f874a5c0a85fcc6d | refs/heads/master | 2023-06-18T04:36:09.221769 | 2021-06-28T16:49:35 | 2021-06-28T16:49:35 | 367,775,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # 한 번 계산된 결과를 메모이제이션(Memoization)하기 위한 리스트 초기화
d = [0] * 100
# 피보나치 함수(Fibonacci Function)를 재귀 함수로 구현(Top-Down DP)
def fibo(x):
# 종료 조건
if x == 1 or x == 2:
return 1
# 이미 계산한 적 있는 문제라면 그대로 반환
if d[x] != 0:
return d[x]
# 아직 계산하지 않은 문제라면 점화식에 따라서 피보나치 결과 반환
d[x] = fibo(x - 1) + f... | [
"lsb530@naver.com"
] | lsb530@naver.com |
3672fb464bb5268c69b2b5c0f18e88217e198e27 | d3f30c67faf0b593565fc5fa526d6b96a8a9f65f | /tests/colors/test_named_colors.py | 1cf5a812e237ddf86bbdb4c56f1b3948d08b737f | [
"BSD-3-Clause"
] | permissive | has2k1/mizani | 4b3732b13380c6f2660f313877d95f63095781f3 | 90b0a54dd3a76528fae7997083d2ab8d31f82a58 | refs/heads/main | 2023-09-02T00:47:17.321472 | 2023-09-01T09:44:57 | 2023-09-01T13:45:36 | 62,319,878 | 41 | 15 | BSD-3-Clause | 2022-04-04T04:26:51 | 2016-06-30T15:02:41 | Python | UTF-8 | Python | false | false | 148 | py | import pytest
from mizani.colors import get_named_color
def test_bad_name():
with pytest.raises(ValueError):
get_named_color("tada")
| [
"has2k1@gmail.com"
] | has2k1@gmail.com |
5643b2576ddee6bd17ed172571929bd22c943547 | 992b725c6b2b9edf0a98124df9d6d57cef8de276 | /website/webapps/django/myproject/myproject/settings/django_settings.py | 6eb09369cc3c31669b14db323005ee55a9311a3c | [
"MIT"
] | permissive | joskid/webfaction-django1.4-boilerplate | c941243abe419e5ed8aa385c5def1fe124778979 | 2f4d4286ac688b9b5377468d0379ff761fce1d2a | refs/heads/master | 2021-01-16T22:20:33.768869 | 2012-04-14T12:13:31 | 2012-04-14T12:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | """Django related settings."""
# =================
# General settings
# =================
SITE_ID = 1
ROOT_URLCONF = 'myproject.urls'
# =======================
# Email related settings
# =======================
SEND_BROKEN_LINK_EMAILS = True
# =============================
# Language & Timezone settings
# =========... | [
"mbrochh@gmail.com"
] | mbrochh@gmail.com |
800c5503e5178413ca2af5a0ab06f2e04c3ef086 | a5ba631dddaf2912c309601f8fbdd3c5b494fe20 | /src/command_modules/azure-cli-keyvault/azure/cli/command_modules/keyvault/__init__.py | 5079e8e593669983b2d81003320f74c5e7ce940a | [
"MIT"
] | permissive | saurabsa/azure-cli-old | 37471020cd2af9a53e949e739643299f71037565 | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | refs/heads/master | 2023-01-09T04:00:15.642883 | 2018-04-23T21:40:04 | 2018-04-23T21:40:04 | 130,759,501 | 0 | 0 | NOASSERTION | 2022-12-27T14:59:06 | 2018-04-23T21:33:34 | Python | UTF-8 | Python | false | false | 654 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"saurabsa@microsoft.com"
] | saurabsa@microsoft.com |
c5f99536a5548f6b169a34a0a19e5953f14a6846 | e988ad9e03b5b70f23cf9ef5dbd4394fff1a0fcf | /c10ktools/test_commands.py | 2df911477d9fddd771fab5bc3274749326819a4b | [] | no_license | kremerben/websockets-and-django | 703a4c8bca3b62f4f3416ba7d44fafbbef8cd9be | 21c129822b6148ffcdbc4a2b7c97280026bb6c49 | refs/heads/master | 2016-08-06T15:28:19.596141 | 2014-11-26T00:18:12 | 2014-11-26T00:18:12 | 27,065,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | from io import StringIO
from django.core.management import call_command
from django.core.urlresolvers import reverse
from .management.commands.testecho import Command as TestEchoCommand
from .test import ServerTestCase
class CommandsTests(ServerTestCase):
def test_testecho(self):
# Tweak a few paramete... | [
"kremerdesign@gmail.com"
] | kremerdesign@gmail.com |
5c66a358feb141ddb959faa407d931180ccc70ff | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformat.py | 9bdc5f812feb939bcd67ef70d1ecf0de6c3392d4 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 462 | py | import _plotly_utils.basevalidators
class TickformatValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name="tickformat",
parent_name="scattergeo.marker.colorbar",
**kwargs
):
super(TickformatValidator, self).__init__(
plotly... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
b495f76e7345ba9ec9b5f6f089bc2ef4522d6814 | 95c6d7e2c5d3b9068d252214662a6980a53590fa | /python3/557.reverse-words-in-a-string-iii.313398610.ac.py | dedf4af222104262e6286cff1ea88fb0c1e17acb | [
"MIT"
] | permissive | Diego-Zulu/leetcode_answers | ec0f944b776c3eb5deb7897565d8609bf879af98 | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | refs/heads/master | 2022-07-13T02:35:51.202284 | 2020-05-17T16:00:34 | 2020-05-17T16:00:34 | 264,072,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | #
# @lc app=leetcode id=557 lang=python3
#
# [557] Reverse Words in a String III
#
# https://leetcode.com/problems/reverse-words-in-a-string-iii/description/
#
# algorithms
# Easy (68.65%)
# Likes: 902
# Dislikes: 85
# Total Accepted: 190.3K
# Total Submissions: 277.1K
# Testcase Example: `"Let's take LeetCode c... | [
"diego_i_zuluaga@outlook.com"
] | diego_i_zuluaga@outlook.com |
9052c45c50ca3c4ecec1641abb846f99bf56d90f | 2beb46636bb70791a6945b6b02cc92d13f9c3f44 | /Functions/test/test.py | 4fad4ec91c869bb2a9290c87e2f74c3c666f2377 | [] | no_license | txl302/Philos_R | 02a32a460828491370b357760f2b68ca81916e54 | aa0c652383b976b0174eef19f640bbe2ce94a695 | refs/heads/master | 2021-06-25T22:44:27.214004 | 2019-05-07T02:43:32 | 2019-05-07T02:43:32 | 136,518,388 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | import cv2
import socket
import numpy
from gtts import gTTS
import os
s1 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s1.bind(('192.168.1.235', 9998))
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
count = 0
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s1 = socket.socket(socket.AF_INET, socket.... | [
"txl302@case.edu"
] | txl302@case.edu |
2ae362c7147d6e9836094543c93d6fab9dbff737 | 9ecf55bf2601e0d4f74e71f4903d2fd9e0871fd6 | /my_seg_tf/v10_segcap_128_128/models/unet.py | 455c3985246c4e5a6ddd8efa382184824c000286 | [] | no_license | qq191513/mySeg | 02bc9803cde43907fc5d96dc6a6a6371f2bef6fe | 4337e6a0ca50b8ccbf6ed9b6254f2aec814b24db | refs/heads/master | 2020-04-10T09:57:37.811133 | 2019-06-26T08:21:23 | 2019-06-26T08:21:23 | 160,951,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | import sys
sys.path.append('../')
from choice import cfg
lr_init = cfg.lr_init
import tensorflow as tf
num_classes = cfg.num_classes
# from tools.development_kit import print_tensor
#正常
#交叉熵loss不可用,loss一直是成千上万,改成dice_loss
def bn(inputs, is_training):
normalized = tf.layers.batch_normalization(
inputs=input... | [
"1915138054@qq.com"
] | 1915138054@qq.com |
9fa24c22672b2afa918d165c5ca1ec10987a51da | f51c281d823870e7dbbe1f871cd981bb0ec8c07e | /shuffle-the-array/shuffle-the-array.py | f5bfaa8c8fc507ad363af4743a2e6b6e269f2705 | [] | no_license | Arxtage/leetcode | e5e02fc400afaa6c216e835a0ee74296e3134646 | 95fcea1fc810a13ca7ecaa1cde6d3609cc695a9d | refs/heads/main | 2023-08-27T19:37:17.691898 | 2021-10-23T23:48:51 | 2021-10-23T23:48:51 | 383,264,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | class Solution:
def shuffle(self, nums: List[int], n: int) -> List[int]:
# Two pointers
# O(N) O(N)
res = [None]*len(nums)
i = 0
j = 0
while j + len(nums)//2 < len(nums):
res[i] = nums[j]
res[i+1] = nums[j + len(nums)//2]
... | [
"31474005+Arxtage@users.noreply.github.com"
] | 31474005+Arxtage@users.noreply.github.com |
b19b3cba80fc1e6de01218c502a3665a4ed9aa64 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /simulation_research/next_day_wildfire_spread/data_export/export_ee_training_data_main.py | 64d4e35aa23942f18a7a3654a5fccb22e4e69e8d | [
"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 | 3,766 | 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
8fb1f21b84ec49f2a30d7894ebf49b24fa42f8e0 | e86364b36b82c24596dd71f9fa2221d036e8defc | /collections/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/facts/l2_interfaces/l2_interfaces.py | 4daeea7f02cd8cae3de3da882f10d040a41de5a3 | [] | no_license | ganeshrn/network_collections_migration | b3f11be5ecb9557787bcd12ca01b227379c7c102 | 8f56b60bfde606b291627665a1218bf7ce15f3a1 | refs/heads/master | 2020-09-12T12:10:58.189645 | 2019-11-18T11:44:48 | 2019-11-18T11:44:48 | 222,419,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,603 | py | #
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat Inc.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The iosxr l2_interfaces fact class
It is in this file the configuration is collected from the device
for a given resource, parsed, and the facts tree is populated
base... | [
"ganesh634@gmail.com"
] | ganesh634@gmail.com |
8a2d4e51d7fc4aba667a50d2e203a4fbd3804629 | ebb71d8710ac1445dc00b1c2a65a1e42979e2718 | /18-linear-classifiers-in-python/2-loss-functions/04-implementing-logistic-regression.py | ee52f4e30b74f7ff10b133349e960e7c79b8676b | [] | no_license | 0ashu0/datacamp-1 | 6473d83afc0ae00dc43116c1889bf065fb923ce4 | 9f0f64427ff07ff5f132886a5f44e19c5045c705 | refs/heads/master | 2020-12-13T07:56:18.687044 | 2019-01-09T07:18:02 | 2019-01-09T07:18:02 | 234,354,666 | 1 | 0 | null | 2020-01-16T15:49:48 | 2020-01-16T15:49:47 | null | UTF-8 | Python | false | false | 1,521 | py | '''
Implementing logistic regression
This is very similar to the earlier exercise where you implemented linear regression "from scratch" using scipy.optimize.minimize. However, this time we'll minimize the logistic loss and compare with scikit-learn's LogisticRegression (we've set C to a large value to disable regular... | [
"sashakrasnov.nfo@gmail.com"
] | sashakrasnov.nfo@gmail.com |
7bfcceafb431f55b9fb77117d4a9fb8889af69ff | c0d4f9f732561070e6941476392d257c8ce2d28b | /python-lab/lab03/forLab6.py | 73eac756a4cb50e46382ccbd0d57b341f5c960ad | [] | no_license | yeonjooyou/learn-python | acc256d96601dde649ee0d1e19109945424021a8 | 158a5b501091c39eabde1a94777467fb6a9a8c56 | refs/heads/master | 2023-06-18T09:53:45.425414 | 2021-07-21T23:53:32 | 2021-07-21T23:53:32 | 386,617,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # evenNum 변수와 oddNum 변수의 값을 0으로 대입한다.
e, evenNum = 0, 0
o, oddNum = 0, 0
# 1 부터 100 까지의 값 중에서
# 짝수의 합은 evenNum 에 누적하고
# 홀수의 합은 oddNum 에 누적한다.
'''
for e in range(2, 102, 2):
evenNum += e
for o in range(1, 101, 2):
oddNum += o
'''
for i in range(1,101) :
if i % 2 == 0 :
evenNum += i
else :
... | [
"yeonjooyou@naver.com"
] | yeonjooyou@naver.com |
583ea67e955c1672d27f4b9ceca84660296e332d | 79aa8e7e26d64a129c3a05ace193180920b1c85e | /class_plan/urls.py | 943e0861434abe38496b2aa98813aea12b02a545 | [] | no_license | rui19921122/ConferenceSystem | 4a66e294b1d926c5b3e4a34b1315498db0e4c450 | 9410374a8f5ab683842bf1798ce94d88993f2f1e | refs/heads/master | 2020-04-15T14:32:27.645140 | 2016-09-06T12:25:36 | 2016-09-06T12:25:36 | 51,907,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from .views import ClassPlanBaseViewSet, ClassPlan, ClassPlanByDate, ClassPlanDetailViewSet
router = DefaultRouter()
urlpatterns = [
url(r'^classPlan/(?P<date>\d{4}-\d{1,2}-\d{1,2})', name='class-plan-by-date', view=ClassPl... | [
"rui19921122@qq.com"
] | rui19921122@qq.com |
66b5fbcd0a476ee963490fecc065aa44c8552e88 | d8d0de926ac1a1de1abfca06aaed843d59f3674a | /python/medium/Solution_105.py | b89a4f6d5720027472b34e1f4e69cf45d82fc0d5 | [] | no_license | nickest14/Leetcode-python | 75b4919d1ac45c6a7b008e6336db38a06e337bc7 | 435deadfe2b3936dd7848a384d2d9a364352268c | refs/heads/master | 2023-08-31T07:23:14.595745 | 2023-08-30T13:52:10 | 2023-08-30T13:52:10 | 188,695,066 | 0 | 0 | null | 2019-07-20T12:29:09 | 2019-05-26T14:43:12 | Python | UTF-8 | Python | false | false | 709 | py | # 105. Construct Binary Tree from Preorder and Inorder Traversal
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def buildTree(self, preorder, inorder):
if not preorder or not inorder:... | [
"nickest14@gmail.com"
] | nickest14@gmail.com |
bd7645b3a36b736b80ed67c08e6569ed81c3815a | 46566868c4009861aec56bcf4254a8e28abda564 | /deco.py | b44c28f34f372ac0eef59a2da33d102328730809 | [] | no_license | nanohaikaros/core_python2 | 1bd6e3b9ac85b3629226f3a79f05481d681d2c74 | d6586c29e4c21ea0a4f053367a57c26040931336 | refs/heads/master | 2021-07-04T23:23:11.095385 | 2017-09-28T01:51:26 | 2017-09-28T01:51:26 | 103,794,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | #!/usr/bin/env python
from time import ctime, sleep
def tsfunc(func):
def wrappedFunc():
print '[%s] %s() called' % (
ctime(), func.__name__)
return func()
return wrappedFunc
@tsfunc
def foo():
pass
foo()
sleep(3)
for i in range(2):
sleep(1)
foo() | [
"1371689491@qq.com"
] | 1371689491@qq.com |
3a587dd73157c8bec95d6c9313e475a298f7e872 | ddf7d8f996a0cf66b0e083e0557305b3be4619e5 | /myJunkYard/myTutorials/Python/ciscoPythonClass/day01/fibo.py | 0d9e4cb7294c3847e0e9a0bf20336455527487bb | [] | no_license | archerImagine/myNewJunk | 8fab3e6ada03eee3aebb5c712d50bcfb38bf48b0 | 42fff352f6057f84ab8c81f1debc149881c1e49f | refs/heads/master | 2020-06-16T12:22:30.590672 | 2016-11-29T17:07:23 | 2016-11-29T17:07:23 | 75,103,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | #!/usr/bin/env python
x = input("enter number")
a, b = 0, 1
while x:
print a
a,b = b,a+b;
x -= 1;
a,b = 0,1
num = input("Enter Number")
for i in range(num):
print a,
a,b = b,a+b
| [
"animeshbhadra@Animeshs-MacBook-Pro.local"
] | animeshbhadra@Animeshs-MacBook-Pro.local |
a7307168be8b8a72c3d65c5cb1870e116775141e | ee8686e3b7324690b5c673663d8899bbce1a150d | /rtcrobot/rtcrobot_driver/nodes/battery.py | 8c4038ec1dce089c2eca12e8945732ca5f123de5 | [] | no_license | muye-robot/rtcrobot-ws | 5388ede8d66565cee6dac183082b2270f61a1a63 | 286bcbf21243e193673a62027710038cb4f68057 | refs/heads/master | 2023-01-24T23:57:21.288892 | 2020-12-10T04:21:33 | 2020-12-10T04:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,008 | py | #!/usr/bin/env python
# license removed for brevity
#import roslib
import rospy
import struct
from sensor_msgs.msg import BatteryState
import serial
import time
class BMSv4:
def __init__(self, port = '/dev/battery', baudrate = 9600):
self.pub = rospy.Publisher('rtcrobot/battery', BatteryState,queue_size=10)
ros... | [
"you@example.com"
] | you@example.com |
54dab866b78b4fc2c3858735cc0935a98de92834 | 0450bc5a23c60c74ae33216690c649cf86e5edaa | /visual/visual_3_home/visualize.py | d1f73a58a29f53b434ca333d681314dc590fb1a1 | [] | no_license | whiteking64/thesis | 4e66939bafcafb5a1486edcbdfad5c81d88c91b7 | f8fd58c1695bdd56bc15265147f6d940e9b3fbbd | refs/heads/master | 2021-09-06T20:32:53.050720 | 2018-02-11T07:32:03 | 2018-02-11T07:32:03 | 109,417,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,339 | py | #可視化
from mpl_toolkits.basemap import Basemap
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import calc_data
import basic_file as b_f
latlon145_file_name = b_f.latlon145_file_name
latlon900_file_name = b_f.latlon900_file_name
grid900to145_file_name = b_f.grid900to145_fil... | [
"whiteking64@gmail.com"
] | whiteking64@gmail.com |
f0913b68675c9e113dfd57f2d85703caa03d951a | 81529f3d8570db42218b9420fe82ddc3ec7820b6 | /07-exercises/normal_cdf_plots.py | 5a002c5edea389328824d0b580aca14bc4e736c4 | [] | no_license | rileyL6122428/data-science-from-scratch-notes | f10770030fbdd5062de0477b8997cd33b5acf1e6 | 8202442024a502b13d0b462c398b2dcb74712e38 | refs/heads/master | 2020-07-13T10:25:39.318516 | 2019-08-29T02:45:33 | 2019-08-29T02:45:33 | 205,064,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from prob import normal_cdf
from matplotlib import pyplot
x_vals = [ num / 10 for num in range(-50, 50) ]
pyplot.plot(x_vals, [ normal_cdf(x_val) for x_val in x_vals ], '-', label='mu=0;std_dev=1')
pyplot.plot(x_vals, [ normal_cdf(x_val, std_dev=.5) for x_val in x_vals ], '--', label='mu=0;std_dev=.5')
pyplot.plot(x_... | [
"rileylittlefield@ymail.com"
] | rileylittlefield@ymail.com |
fce36d13c506dafdf7878ddb2dd3080ba0af999b | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /pos_sale/models/__init__.py | 0ae7396ae002d533ba3fd4540e2fdb0d9241b775 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from . import pos_config
from . import pos_order
from . import crm_team
from . import pos_session
| [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
0418a49e3c76c1b9b8acc852f2e5e08550970187 | 65b4522c04c2be071c2d42095956fe950fe1cebe | /inversions/inversion10/iter1/run1/analysis/time_series/gen_kml.py | b14b385494854a23ec6b42eb918b2d9a11ac9027 | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | import viscojapan as vj
kml = vj.inv.KMLShowTimeSeries(
file_sites = 'sites_with_seafloor',
db_pred = '../pred_disp/~pred_disp.db'
)
kml.save_kml('time_series.kml')
kml.plot()
| [
"zy31415@gmail.com"
] | zy31415@gmail.com |
05e57ff1e74ce3d6e2f7d49ce0cf5b311d607095 | 79a484e91a8df432a0ded93806a1e8237df7c253 | /umibukela/migrations/0040_auto_20181106_1403.py | ee7fb469d41212264660ad80550287c424777ecd | [
"MIT"
] | permissive | OpenUpSA/umibukela | 7ba14397ad543154d3a32ebfd84e89aa07f7011e | 34c1a29a429b88c2f574e9120cfe93ba524633da | refs/heads/master | 2023-07-26T19:45:12.531887 | 2023-07-10T15:53:07 | 2023-07-10T15:53:07 | 47,106,932 | 0 | 0 | MIT | 2023-02-02T01:36:59 | 2015-11-30T09:03:27 | Python | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('umibukela', '0039_programmeimage'),
]
operations = [
migrations.AddField(
model_name='programmeimage',
... | [
"stumenz.complex@gmail.com"
] | stumenz.complex@gmail.com |
c66132eeb9a5c7e705bf4e318f45ea5222211a8d | ddd28fd54f75e49c0783d0bf4d1d422f1e82c257 | /src/docker/django/config/settings.py | b7af4908954c90a4c478d21b55b9dbbc62a1afc2 | [] | no_license | owari-taro/utils | d70f1788c3f7bb5a8a8f9844b115e5f4200e3c56 | a126a8d2179740da71f5720e55d054be61d51b4c | refs/heads/master | 2023-02-04T05:03:16.688019 | 2023-01-13T09:21:44 | 2023-01-13T09:21:44 | 232,822,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 4.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""
from pathlib ... | [
"taro.biwajima@gmail.com"
] | taro.biwajima@gmail.com |
211c3bf0c7f4e55e2d7293d2ba870b98011f429e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/231/58913/submittedfiles/funcoes1.py | 0cffa3df36e0ad3cac7704d124f2599faff3b502 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | # -*- coding: utf-8 -*-
def crescente(lista):
for i in range(0,len(lista),1):
if lista[i]<=(lista[i]-1):
return True
else:
return False
#escreva o código da função crescente aqui
def decrescente(lista):
for i in range(0,len(lista),1):
if lista[i... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6feb039b2191fbb7301c8d1cce6ab2d85de6cb52 | 24d33b98fb16cace92989a414a9121e505f47d68 | /Acquire/ObjectStore/_objstore.py | 4a28104bfe070c072906d4f65b49dd11bd935de5 | [
"Apache-2.0"
] | permissive | michellab/BioSimSpaceCloud | eae9b2aff3184f097ffa667e987d7dd9a99c40e0 | 456b146a2131565e354352872d3e75a08c3652d1 | refs/heads/master | 2022-11-22T22:58:45.794442 | 2018-11-06T12:30:40 | 2018-11-06T12:30:40 | 137,510,733 | 2 | 1 | Apache-2.0 | 2022-11-16T01:28:44 | 2018-06-15T16:38:06 | Python | UTF-8 | Python | false | false | 3,297 | py |
import io as _io
import datetime as _datetime
import uuid as _uuid
import json as _json
import os as _os
from ._errors import ObjectStoreError
__all__ = ["ObjectStore", "set_object_store_backend",
"use_testing_object_store_backend",
"use_oci_object_store_backend"]
_objstore_backend = None
de... | [
"chryswoods@gmail.com"
] | chryswoods@gmail.com |
c727a0698fc36f7ca92dc7b6cf648a395f2fcce9 | a24ca0dcf9a42dc762af4ecb24eb10d5457909a4 | /importers/aid_type.py | c42a1a3943deb68cba221c2d495d2d9ab0cc24dd | [
"MIT"
] | permissive | codeforIATI/codelist-updater | 68f4f0f0b95b6a5eaf83f816bdf0ff5f1294d0e0 | 341b3c32925cd62850d81b9576c5d57081fc3d70 | refs/heads/main | 2023-05-26T02:08:17.870830 | 2023-03-11T20:56:15 | 2023-03-11T20:56:15 | 220,318,033 | 1 | 0 | MIT | 2023-01-27T18:44:11 | 2019-11-07T19:55:40 | Python | UTF-8 | Python | false | false | 475 | py | from .helpers import Importer
def run():
url = 'https://raw.githubusercontent.com/datasets/' + \
'dac-and-crs-code-lists/main/data/aid_types.csv'
lookup = [
('code', 'code'),
('name_en', 'name_en'),
('name_fr', 'name_fr'),
('description_en', 'description_en'),
... | [
"a.lulham@gmail.com"
] | a.lulham@gmail.com |
8a95e3dbabfec8c82f6ba1e8b3c86ad4303f519e | c1e87e9a7f0f2e81e3113821c21378f7b6436b6f | /EGE/27/27_8.py | a63a7c9e0fb4751420320b597fdc52fd25193298 | [] | no_license | Pochemu/Activity | 8e2a7ec4f6b7fd233c0ee48e893733b077aac7a4 | 1b21e674635ff95104e18e93241c30020032e26a | refs/heads/main | 2023-07-09T04:04:06.337321 | 2021-07-06T21:38:26 | 2021-07-06T21:38:26 | 337,492,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | f = open('27-8b.txt')
n = int(f.readline())
buf = []
ans = 1000001
a = 1001
for _ in range(5):
buf.append(int(f.readline()))
for _ in range(n-5):
x = int(f.readline())
a = min(a, buf[0])
ans = min(ans, a ** 2 + x ** 2)
del buf[0]
buf.append(x)
print(ans) | [
"48361330+Pochemu@users.noreply.github.com"
] | 48361330+Pochemu@users.noreply.github.com |
7887d1d0d1e2431acbdef7ac2f44871b4833f7aa | 6f7ef265722d442c8ea782a2af6fb957a6b36865 | /mozdns/mx/models.py | ee3a4d8a6040c765c50199766500af17863993b2 | [] | no_license | Marlburo/inventory | 751149a0085c8ec8ef82d81ca6e1edc79d4a293d | bb2aa99e41f532c35eda47a210a12be134ca62c0 | refs/heads/master | 2021-01-22T16:38:58.901807 | 2015-01-28T15:37:07 | 2015-01-28T15:37:07 | 33,836,752 | 1 | 0 | null | 2015-04-12T22:39:12 | 2015-04-12T22:39:10 | null | UTF-8 | Python | false | false | 2,456 | py | from django.db import models
from django.core.exceptions import ValidationError
from mozdns.models import MozdnsRecord, LabelDomainMixin
from mozdns.cname.models import CNAME
from mozdns.validation import validate_mx_priority
from mozdns.validation import validate_name
import reversion
from gettext import gettext a... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
4346f388a424a57a37c0d1a77d9559bdba3e2fb0 | 41067fadf2258fad17d04e7ccc1bb20f69711e8d | /mitm/packet.py | 9009af020fafbfcce13f55ab3ae42196f329e051 | [] | no_license | BeyondCy/IoT-IDS | 9d913e13dc4cbe7095f7866fc83946a26b269771 | c8f5bbbcdcf4bc52292b36ad19fed5d228013046 | refs/heads/master | 2023-08-14T16:19:12.928821 | 2021-03-22T10:14:06 | 2021-03-22T10:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | #!/usr/bin/python
"""
Packet Decoder and Encoder
Author: Jay Lux Ferro
Date: 26th Dec 2018
"""
import pprint
import json
import time
from scapy.all import *
import logger as log
import arp
import func
def decode(pkt):
decoded_pkt = []
# EAPOL
if pkt.haslayer(EAPOL):
ether_frame = pkt.getlay... | [
"jayluxferro@sperixlabs.org"
] | jayluxferro@sperixlabs.org |
e76a6998cb602813da4ac11d8dd8a5f7fcf53424 | d3c306b63d1072bf7545dc5ab66964c22e0e3721 | /setup.py | 5b73b80c5238663dacd7e5c5e5b9e8915070ce83 | [
"BSD-3-Clause"
] | permissive | ScatteredInk/ocdskit | 6ff03fe34bef2f4d98ff205528877e32aa75c024 | c7aa01345a2d8b7c140faddf06412d34c1c707f6 | refs/heads/master | 2020-03-25T00:24:56.657129 | 2018-07-11T18:10:19 | 2018-07-11T18:10:19 | 143,184,605 | 1 | 0 | BSD-3-Clause | 2018-08-01T16:59:08 | 2018-08-01T16:59:08 | null | UTF-8 | Python | false | false | 1,005 | py | from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='ocdskit',
version='0.0.3',
author='James McKinney',
author_email='james@slashpoundbang.com',
url='https://github.com/open-contracting/ocdskit',
description='A suite of command... | [
"james@slashpoundbang.com"
] | james@slashpoundbang.com |
13b1ac4b117060a4c4a02ef22618a172cbfdcb32 | ff5892487c262ce845a9996a282d3a2fdb1a3b15 | /URI_1019.py | 8431b42f39ef32d2b8c89e036e7e21d133538f00 | [] | no_license | dankoga/URIOnlineJudge--Python-3.9 | d424a47671f106d665a4e255382fc0ec3059096a | f1c99521caeff59be0843af5f63a74013b63f7f0 | refs/heads/master | 2023-07-15T08:32:11.040426 | 2021-09-03T13:27:17 | 2021-09-03T13:27:17 | 393,991,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | seconds = int(input())
hour, remainder = divmod(seconds, 60*60)
minutes, seconds = divmod(remainder, 60)
print("{}:{}:{}".format(hour, minutes, seconds))
| [
"dankoga2@gmail.com"
] | dankoga2@gmail.com |
7337ae8f677565a8984711087435e0ee252c6d74 | 28c9c80e282ce0c5758f3a3bd08fe909d13ae7b2 | /lawyer_crawler/sxlawyer.py | 1d0298f3ee1218afbc3b2a0ca918c4ead215ba2e | [] | no_license | nightkid101/jgcf | c7513e47e40d19ac1765fc06b9698512c78cdbc3 | 1bf657e56ec483b391aa67dcf40ff1a0f6d8f02a | refs/heads/master | 2022-12-15T03:30:31.695683 | 2019-06-27T08:14:57 | 2019-06-27T08:14:57 | 194,050,771 | 0 | 3 | null | 2022-11-22T02:23:52 | 2019-06-27T08:04:40 | Python | UTF-8 | Python | false | false | 5,584 | py | from pymongo import MongoClient
import re
from bs4 import BeautifulSoup
from urllib.parse import urljoin
from utility import request_site_page
from init import logger_init, config_init
logger = logger_init('陕西省律师协会-数据抓取')
config = config_init()
if config['mongodb']['dev_mongo'] == '1':
db = MongoClient(config['mon... | [
"871241077@qq.com"
] | 871241077@qq.com |
ecff6d33a9b99aa3afcc2eacf89f23f5d84919c1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_156/ch31_2019_08_26_20_16_31_337658.py | ab587bb8e931324af4705a8426c6ae45faa2e090 | [] | 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 | 248 | py | x = float(input('Qual o valor da casa?'))
y = input('Qual seu salario?')
z = float(input('Qual a quantidade de anos?')
prestacao = (x/12)
if prestacao <=0.3*y:
print('Empréstimo não aprovado')
else:
print('Empréstimo aprovado')
| [
"you@example.com"
] | you@example.com |
efae23d5b609899f279c82336282385e26182e71 | b6c675de39e9c10beb967087b1033680cf1632b2 | /methods/BART/fairseq_local/tests/test_label_smoothing.py | 8432d3c7bf948a5c487a40a52feabbaab9a0079f | [
"MIT"
] | permissive | INK-USC/CommonGen | d0a870be5188f0b43942b112fe95dd57b731f823 | 1584f0689282b9faf76dcce87ca2c4ff142b5d09 | refs/heads/master | 2023-08-24T19:46:34.013502 | 2021-12-09T02:28:25 | 2021-12-09T02:28:25 | 237,142,704 | 135 | 25 | MIT | 2023-09-06T17:33:08 | 2020-01-30T05:03:14 | Python | UTF-8 | Python | false | false | 4,235 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import copy
import unittest
import torch
from fairseq.criterions.cross_entropy import CrossEntropyCriterion
from fairseq.cri... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
d006eeba6dd9c90a9f4632a3dfe36ae8d1330624 | 7da1000f72cb53e56a37f1d458e64fc336576778 | /python/24_ReverseList.py | c74d4be942a8b8b81428b1a991444f5f7d2c68c0 | [] | no_license | CharmSun/FuckingOffer | 7378bd9b59fab79c666eb097a29f2f7202b56a7d | 21255b699524a403e5b2944719ec53726ed94b82 | refs/heads/master | 2023-02-24T21:29:04.129154 | 2021-01-31T06:58:02 | 2021-01-31T06:58:02 | 289,035,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # 题目: 反转链表
# 定义一个函数,输入一个链表的头节点,反转该链表并输出
# 反转后链表的头节点。
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
pre = None
cur = head
while cur:
... | [
"suncan0812@gmail.com"
] | suncan0812@gmail.com |
a0b0b29bbecabfbca6290c76b573df54a9d279b4 | 1c15a92f318cd5383300e05adb204b4f3181615b | /hgvs/parser.py | f5066a1fc8164e09ec7d12b27aab17c1726b6f18 | [
"Apache-2.0"
] | permissive | Biocodings/hgvs | 632416fb8815c0d5d054bbc81fa4c61319182ea3 | 234f92e8b0933671b2e129703576c3204ad29748 | refs/heads/master | 2021-01-22T09:55:38.407726 | 2017-09-03T18:19:19 | 2017-09-03T18:19:19 | 102,332,912 | 1 | 0 | null | 2017-09-04T07:40:28 | 2017-09-04T07:40:28 | null | UTF-8 | Python | false | false | 5,650 | py | # -*- coding: utf-8 -*-
"""Provides parser for HGVS strings and HGVS-related conceptual
components, such as intronic-offset coordiates
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
import re
from pkg_resources import resource_filename
import bioutils.sequence... | [
"reecehart@gmail.com"
] | reecehart@gmail.com |
d2b757fd93319a964b307ca6e020f8a651639e89 | cda42fe8bd578683697c666365b66d98ad229aad | /backend/users/migrations/0002_auto_20200928_2315.py | 357f39581c5bdc4b33311d9f312fb77d070e3d80 | [] | no_license | andremcb/newappagain2-15052 | 37cfa6213d4c9f4068911340f28d936a7a3cde10 | 20fa8d29014a2b3fcd4b8eea5e21345eda6a4f54 | refs/heads/master | 2022-12-21T09:21:20.744570 | 2020-09-28T23:15:22 | 2020-09-28T23:15:22 | 299,450,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.16 on 2020-09-28 23:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='name',
field=... | [
"csantos.machado@gmail.com"
] | csantos.machado@gmail.com |
752992f76ea61185ed8f9771e6dca2ffe21643c3 | 3bb57eb1f7c1c0aced487e7ce88f3cb84d979054 | /sgss_retro_senseaware/scripts/formatters/glove_to_w2v.py | 60727708553bcf44fe31efd7c8b135ba666f147d | [] | no_license | ghpaetzold/phd-backup | e100cd0bbef82644dacc73a8d1c6b757b2203f71 | 6f5eee43e34baa796efb16db0bc8562243a049b6 | refs/heads/master | 2020-12-24T16:41:21.490426 | 2016-04-23T14:50:07 | 2016-04-23T14:50:07 | 37,981,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | import sys, gensim
glove = sys.argv[1]
temp = sys.argv[2]
size = int(sys.argv[3])
output = sys.argv[4]
print('Calculating number of instances...')
#words = set([])
#f = open(glove)
#for line in f:
# words.add(line.strip().split(
#f.close()
print('Saving temporary file...')
#t = open(temp, 'w')
#t.write(str(c) + ' ' ... | [
"ghpaetzold@outlook.com"
] | ghpaetzold@outlook.com |
110d3fe2c883c61441e9af1d89c353229bf48347 | 56bdfdd68447dccb0ef6aff0fd98f71e228ae0ae | /code/audioSR/Spoken-language-identification-master/theano/networks/base_network.py | 9372d1d9a594609ba75389ff25d717aa7ab7667d | [
"Apache-2.0"
] | permissive | matthijsvk/convNets | d01393818bcd3a5f33a7b2e488dc6a20823beca8 | 7e65db7857a4e6abfbcab264953eb7741319de6c | refs/heads/master | 2023-01-06T13:37:17.549948 | 2017-03-19T20:32:15 | 2017-03-19T20:32:15 | 69,613,522 | 0 | 1 | Apache-2.0 | 2022-12-21T00:35:53 | 2016-09-29T22:39:56 | Jupyter Notebook | UTF-8 | Python | false | false | 1,573 | py | import cPickle as pickle
class BaseNetwork:
def say_name(self):
return "unknown"
def save_params(self, file_name, epoch, **kwargs):
with open(file_name, 'w') as save_file:
pickle.dump(
obj = {
'params' : [x.get_value() for x in self.params],
'epoch' : epoch,
},
file = save_file,
... | [
"matthijsvankeirsbilck@gmail.com"
] | matthijsvankeirsbilck@gmail.com |
27443829d002df32a4d8ab5741550479220fb673 | efa107a8fff51ecbdcad83260a761c78c4566c5f | /tests/cases/neighborhood.py | d9ca2a491ade6421c40142d75ba173f9f8ddebce | [] | no_license | pattonw/neurolight | 1fd0a556e1fc35c1b1c72fa6584606dc2bdf6817 | 942f9294b9ed847787d7d6c6d37ba60ecfe085ac | refs/heads/master | 2021-07-05T15:04:52.172856 | 2020-08-11T15:00:13 | 2020-08-11T15:00:13 | 190,614,125 | 1 | 0 | null | 2020-04-30T13:45:32 | 2019-06-06T16:27:38 | Python | UTF-8 | Python | false | false | 3,993 | py | # 3rd party library imports
import numpy as np
# gunpowder imports
from gunpowder import (
BatchProvider,
BatchRequest,
Batch,
GraphKey,
GraphSpec,
Graph,
ArrayKey,
ArraySpec,
Roi,
Coordinate,
build,
)
from gunpowder.graph import Node, Edge
# neurolight imports
from neuroli... | [
"pattonw@hhmi.org"
] | pattonw@hhmi.org |
e02bf3d295edc6708e6cb5b770a8c2c593d6ef1f | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /cloudformation_write_f/type_register.py | d189692a79b311d028c8cc6ff99074fa037eedc6 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
58ba4f0e77da00e639f948a4db8c0ba81867f789 | b19b2627c45e8d8890f9599c335ef712d7503cb2 | /complaints/ccdb/build_metadata_javascript.py | 6bd87226578763a8b9f595296bf374fadb46f680 | [
"CC0-1.0"
] | permissive | cfpb/ccdb-data-pipeline | 2567a85f577bc7fbfb4ef676537ba6746bb75283 | d9110fa3097e3eb7535b70c6912f51c41df625f7 | refs/heads/main | 2023-05-25T18:39:23.989879 | 2022-10-24T13:39:36 | 2022-10-24T13:39:36 | 93,775,354 | 7 | 13 | CC0-1.0 | 2023-05-22T22:28:19 | 2017-06-08T17:32:13 | Python | UTF-8 | Python | false | false | 1,649 | py | import errno
import io
import json
import sys
import configargparse
VALID_ATTR = ['metadata_timestamp', 'qas_timestamp', 'total_count']
# -----------------------------------------------------------------------------
# Process
# -----------------------------------------------------------------------------
def load_... | [
"JeffreyMFarley@users.noreply.github.com"
] | JeffreyMFarley@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.