blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
bfb8fe372429b608d6e289976184d5a3671112aa
dfe61b9a718c34cbb2c152246bd70f4675765792
/adjure/models/__init__.py
3526a58a2075d94808b6bd337514b235922b2f2f
[ "MIT" ]
permissive
bellyfat/adjure
eeda52dc4bdd79baaaf428030fdf1b1cd3b51069
974b4465ea9a827074472410d3013c3b5306b5d2
refs/heads/master
2022-01-05T15:44:35.931483
2019-02-18T20:47:30
2019-02-18T21:16:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
from adjure.models.auth_user import AuthUser
[ "ben@Bens-MacBook-Pro.local" ]
ben@Bens-MacBook-Pro.local
7f15a14335ed0c863a97300fe65eedcc2b690e73
7ba2c4fb8b61185cc34aaccf9931c75e95ed5ce5
/practice/explore_enron_data.py
736db7f87e11d49dc0100e3d285b5a7c857b3eb1
[]
no_license
vikramriyer/Predict_fraud_using_Machine_Learning
3b27ca7b047029cb0515e9185958a26f141f4c45
a618a40649db684c3b834f5ae811584d65018997
refs/heads/master
2021-06-22T07:43:44.621860
2017-07-26T00:36:22
2017-07-26T00:36:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,426
py
#!/usr/bin/python """ Starter code for exploring the Enron dataset (emails + finances); loads up the dataset (pickled dict of dicts). The dataset has the form: enron_data["LASTNAME FIRSTNAME MIDDLEINITIAL"] = { features_dict } {features_dict} is a dictionary of features associated with that pers...
[ "vikram.iyer09@gmail.com" ]
vikram.iyer09@gmail.com
a891e3d2acbf47e75c7dbb4843e109d1c043dfbb
ebaba64bfe8e2e647c34e2219c924728e084f3a8
/app/models/common.py
584e79018139cb9e3e565c3fed02ca73e67dcb64
[]
no_license
twinstae/realworld-fastapi
e2a40e2299b900cc27e7e3f00f26736310ac27f1
9a51784cd3e05b5a85a377865983718a31de93fb
refs/heads/main
2023-04-17T08:23:15.280461
2021-05-04T02:43:06
2021-05-04T02:43:06
328,108,621
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
from datetime import datetime from pydantic import BaseModel, Field, validator class DateTimeModelMixin(BaseModel): created_at: datetime = None # type: ignore updated_at: datetime = None # type: ignore @validator("created_at", "updated_at", pre=True) def default_datetime( cls, # noqa:...
[ "rabolution@gmail.com" ]
rabolution@gmail.com
5facdbc7160f4c2041e7d9a208b1f07ed0e14ccd
7179c77f220e5adf1354292c1d3069e0e37bd10f
/Rush00/moviemon/utils/load.py
f5f4d41cc3cde8d89f6706454bd0c0ceb20e7922
[]
no_license
MishinK/Django_pool
09d7244e5ba397dba2d3797b0c3fc6b08862d2dd
484271c63c299c53bf59dacc2412927e818b8096
refs/heads/main
2023-09-03T18:14:01.176740
2021-11-11T06:23:45
2021-11-11T06:23:45
426,892,862
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
from django.shortcuts import redirect from functools import wraps from moviemon.utils.game import load_session_data def load_midd(view_function): @wraps(view_function) def wrap(request, *args, **kwargs): data = load_session_data() if data is None: return redirect("title") re...
[ "mka456@yandex.ru" ]
mka456@yandex.ru
4830b0ef10483ac92c978cef7bdf5ac2da64be45
7b64171318103d29feb06fed0003b4f9adc6a2c4
/backend/backend/views.py
9e1afcae7d37923125e35faa56f075b9e1a9fa81
[]
no_license
mobuchowski/jnp3
25ef5474a9fd7fef15d5fcfc57336904b693b2ba
db0c8e317ba7a3e40c409806ca86b8e6bca857c0
refs/heads/master
2023-03-04T19:05:21.156136
2017-01-24T15:49:56
2017-01-24T15:49:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
69
py
from api.views import UserDetail from django.shortcuts import render
[ "matxxx01@gmail.com" ]
matxxx01@gmail.com
2a46ee9f78437e46ba7da582c601803165ce6ffe
d6befe88e1bcd00d319ae16f3901908102d18591
/api/sonetworks/migrations/0017_auto_20170410_2254.py
44c595b658d5d7393887b0fa8b3ff66931ae6160
[ "MIT" ]
permissive
ecelis/semitki
b50c8e211462ef0a98a60ed4b9643be3faea1731
6c7cbb2bb2260db79478de48a9b2e71b8ed633ff
refs/heads/master
2021-06-24T03:02:56.696206
2017-06-20T16:04:36
2017-06-20T16:04:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,709
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-10 22:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('sonetworks', '0016_remove_staticpage_page'), ...
[ "gvaldez@gmail.com" ]
gvaldez@gmail.com
2d804bd06aa80f5d4e72d9c9eb4591fccfcb358f
02dc1f70da529c7c2aa45dcfe5e0a3aeeb1f98cc
/src/099_recover_binary_search_tree/099_recover_binary_search_tree.py
007b57cf0c699c85f313ec566a75d2ce5c5492ac
[]
no_license
ypliu/leetcode-python
2a5a14de6310cae19b9cc42091d81586e697fffb
13e61c13c406a73debcfc996937cf16f715d55d1
refs/heads/master
2020-03-27T06:17:32.303442
2019-02-24T14:50:11
2019-02-24T14:50:11
146,094,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def recoverTree(self, root): """ :type root: TreeNode :rtype: void Do not return anything, modify root in-p...
[ "noreply@github.com" ]
ypliu.noreply@github.com
ea1355bf106fc1f0df6f659e51c72ad48cb1c02a
dd12c10ca55da8bac3bdf87d474885aef956091e
/leap_year.py
db0c05a59a983f3252fcb64abf176a8100b3bda8
[]
no_license
Diego91RA/school_2020_examples
6a2232210bd4c70d0b4857c6faa69397db664c42
68cc411defe5def6702ba612768dfb498c62fefa
refs/heads/master
2022-11-26T10:11:45.398232
2020-07-29T11:38:35
2020-07-29T11:38:35
282,643,462
0
1
null
null
null
null
UTF-8
Python
false
false
311
py
l = [] for i in range(2020, 10001): if i % 4 == 0: if i % 400 == 0: l.append(i) elif i % 100 == 0: pass else: l.append(i) print(l) print(len(l)) c = 0 import calendar for i in range(2020, 10001): if calendar.isleap(i): c += 1 print(c)
[ "13482645+Diego91RA@users.noreply.github.com" ]
13482645+Diego91RA@users.noreply.github.com
09a6e5cb15cb9e1a4d509bc8324a6e269ca25419
9ef64268573b24190aba70eabf3259f6cba4b95a
/synapse/handlers/cas_handler.py
5060936f943a71e0eca920c51aea6e3e6fca81e9
[ "Apache-2.0" ]
permissive
Zachinquarantine/synapse
c5f06b1dce8260f5adf17f445e6c2cb14b0b85da
abc814dcbf559282220c35a45b3959bb23a2ed50
refs/heads/develop
2023-04-10T10:55:09.150028
2021-04-09T12:11:51
2021-04-09T12:11:51
321,198,871
0
0
Apache-2.0
2020-12-14T01:22:15
2020-12-14T01:22:14
null
UTF-8
Python
false
false
14,232
py
# -*- coding: utf-8 -*- # Copyright 2020 The Matrix.org Foundation C.I.C. # # 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 require...
[ "noreply@github.com" ]
Zachinquarantine.noreply@github.com
3c5c399e0a23305be3ae7f2a48763bcbf20f2506
10134a8b3ffaca93cd2cc4a7adb8c676947cf1bd
/Scripts/merged.py
ccc2c0db5f18f002c537ef2898d2c20175f6c244
[ "MIT" ]
permissive
usman-dev/PDFs-TextExtract
7cb74db114a49dfbc939dae0be48b316f37f99d9
f07aadb3057bf98fce63269bc2ba252b00efa4a6
refs/heads/master
2023-04-07T20:34:17.893296
2021-04-10T21:38:42
2021-04-10T21:38:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
import glob from PyPDF2 import PdfFileWriter, PdfFileReader def merger(output_path, input_paths): pdf_writer = PdfFileWriter() for path in input_paths: pdf_reader = PdfFileReader(path) for page in range(pdf_reader.getNumPages()): pdf_writer.addPage(pdf_reader.getPage(page)) with ...
[ "ahmedkhemiri24@outlook.fr" ]
ahmedkhemiri24@outlook.fr
3183ecf1900a24188a08ca3f2ea88ac1e56e75d8
33c346f7eaef356b84f63622acb79619b7a685ed
/apiserver/server/libs/Coder.py
5fe93cc34d90731584172c79f7e5f24ed00c6dc1
[]
no_license
rhdtl78/Open-Bigdata-Visualization-Analysis-
90966d9ed65edfa4b0c5f7685f627b5e969d9b63
b156d03ed52dfba81b1758c7edc90249211768c4
refs/heads/master
2023-01-21T04:59:51.325739
2019-09-02T05:03:45
2019-09-02T05:03:45
138,969,085
3
1
null
2023-01-09T11:27:29
2018-06-28T05:13:34
JavaScript
UTF-8
Python
false
false
1,492
py
import pandas as pd import numpy class Coder: def __init__(self): self.escapeList = [] # self.escape = { # "&35;": "#", # "&36;": "$", # "&46;": ".", # "&91;": "[", # "&93;": "]", # "&47;": "/", # "#": "&35;", ...
[ "rhdtl78@gmail.com" ]
rhdtl78@gmail.com
8bcfcf6a35cb053347ebb04734d81c1d81d8ba98
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_53/278.py
96c372a1906d7ba215f82dabd1b59a7ee8d0f1b0
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
#!/usr/bin/python for i in range(1, int(raw_input())+1): N, K = map(int, raw_input().split()) result = 'ON' for j in range(N): if K & (1<<j) == 0: result = 'OFF' break print 'Case #%d: %s' % (i, result)
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
64ab96786261069745119f13da7c1a8d8eaa975a
d32d727252dbda22cd3d4b68c0e6f01abf8c7549
/src/tweetme/views.py
a092fa8ac4811fa167aa58886b6375a73299d7a8
[]
no_license
chintan2011/tweetme
aa6fa7666692ccb3bc7e84ceb3fd1b5227b289cb
a7e09cf1e88950bad7d50a1f137cb3762e4bab33
refs/heads/master
2020-03-23T06:30:44.815158
2018-10-11T02:00:17
2018-10-11T02:00:17
141,213,289
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
from django.shortcuts import render #retrieve # GET -- templates from home.html def home(request): return render(request,"home.html",{})
[ "chintan2011@gmail.com" ]
chintan2011@gmail.com
70bc6a51ddc9d9ad4fc02a3e8c912d43e224c8ee
c3017c1dbfaf963679c9833e64fe71f0e355c110
/user_profile/migrations/0004_auto_20210407_1755.py
6380c80e971eb891a612854fbf42aa763a873b24
[]
no_license
Lokker29/fun_queue
f9e2abca6e12ba2f3c09c48a8281ea36425c3de0
894b501d18c2996c291b021f92dca4e93198d3ff
refs/heads/main
2023-04-04T16:47:09.024952
2021-04-09T05:03:18
2021-04-09T05:03:18
356,141,290
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
# Generated by Django 3.2 on 2021-04-07 17:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('user_profile', '0003_unigroup'), ] operations = [ migrations.AlterModelOptions( name='unigroup', ...
[ "bohdan.bilokon@raccoongang.com" ]
bohdan.bilokon@raccoongang.com
f5b8678585e77ba97a9bda55aebd96c14fe54d1e
e8a6b1a3d378ac212afee93b1cdb68ae009edbcd
/uhac/uhac/settings.py
f0dc8acbc5b641b854bf476a83bf4e00a265bd78
[]
no_license
SmbCantos/UHACK3
33e27163bebd884ea3b9efde58f735c4bd267980
71233a6b54fb537ff00671456c24735a3318bbec
refs/heads/master
2021-06-11T11:36:32.405493
2016-11-26T13:08:02
2016-11-26T13:08:02
74,825,565
0
0
null
null
null
null
UTF-8
Python
false
false
3,113
py
""" Django settings for uhac project. Generated by 'django-admin startproject' using Django 1.10.2. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os #...
[ "fjcamillo.dev@gmail.com" ]
fjcamillo.dev@gmail.com
ff22fd675b4bd081cce28221000cb0a7164d32b9
2478e5414404819e0629ea5f8ca7a83f836ba733
/flask_mysql/crud/users_CRUD_modular/flask_app/controllers/users.py
00c8192aed532e81d42ff27fffe05d848de326ad
[]
no_license
Carpe-liam/python
07b380ff16c1f6f31cfa1fa4a7ccbd7ae420245b
23f0c042666356027e59ae582d401896e173bf15
refs/heads/master
2023-08-15T03:09:03.037502
2021-09-25T04:45:44
2021-09-25T04:45:44
401,517,402
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
from flask_app import app from flask import render_template, redirect, request, session, flash from flask_app.models.user import User @app.route('/') def index(): return render_template("index.html") @app.route('/users') def read(): users = User.get_all() print(users) return render_template("read.html...
[ "alexander.liam.tyler@gmail.com" ]
alexander.liam.tyler@gmail.com
9b8228925ff7e3762993eca77625969608252ee0
a3326328b60a125de3cdd473519a3cee751347c6
/Codigos/ExpresionesRegulares.py
dc1703d0c026add443942a392f95465e1a165bd2
[]
no_license
villarj/TFM-LogCluster-for-Event-Logs
d1f3fbf5d25f2902203ffc472da5bbd916414ff8
1583145141ae87d3cc213c58160b42543a16f2d5
refs/heads/master
2020-03-18T06:08:29.933587
2018-09-11T17:15:38
2018-09-11T17:15:38
134,378,407
0
1
null
2018-05-22T07:43:31
2018-05-22T07:39:12
Python
UTF-8
Python
false
false
8,169
py
import regex as re #Vamos a crear una clase que nos encontrara los patrones deseados. class findPattern(): #Definimos los patrones que se quieren buscar. MONTHS_PATTERN = 'january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sep|sept|oct|nov|dec...
[ "villarj@ifca.unican.es" ]
villarj@ifca.unican.es
674ded63f9ecd7d257210fd5b0bc3cc5693b7ef1
2834f98b53d78bafc9f765344ded24cf41ffebb0
/third_party/blink/renderer/bindings/scripts/bind_gen/codegen_context.py
8b06e8788988d91bc42b0326dd58240ca4dcf6e6
[ "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0" ]
permissive
cea56/chromium
81bffdf706df8b356c2e821c1a299f9d4bd4c620
013d244f2a747275da76758d2e6240f88c0165dd
refs/heads/master
2023-01-11T05:44:41.185820
2019-12-09T04:14:16
2019-12-09T04:14:16
226,785,888
1
0
BSD-3-Clause
2019-12-09T04:40:07
2019-12-09T04:40:07
null
UTF-8
Python
false
false
7,406
py
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy from . import name_style from .path_manager import PathManager class CodeGenContext(object): """ Represents a context of code generati...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
3d976c2385b5fd2a293ffb59931822dc483ebdf8
920202f7c93d8fe2e1063c8576a3daa0d2d61864
/test_case_6.py
8c6a03748b2f01c8b3e75de475baa3f5921a7c2f
[]
no_license
JuliaFedyaeva/autotests_python
3d1f2f25096345c3894d90746d39a7f08442f82e
b777a5bbc191c34ab8b5dccefcceef821aae2c79
refs/heads/master
2022-12-26T14:00:18.930862
2020-09-28T11:34:06
2020-09-28T11:34:06
294,995,660
0
0
null
null
null
null
UTF-8
Python
false
false
3,383
py
import locators as _locators import pytest import utils import test_data from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC @pytest.mark.xfail(reason="It's a negative test") def test_payment_without_card(...
[ "julia.fedyaeva@mail.ru" ]
julia.fedyaeva@mail.ru
3288a5d507b48c805c130854b0793d855808c410
11c2fae3b7a8547fe31c2340192f3183bc86ebae
/test/relation_extract_test.py
67ad1f808570ec6a4fc4a617148c2f069e740748
[ "Apache-2.0" ]
permissive
SusannaWull/bert_seq2seq
86ff2229d9c6048475a958477e873d1dce6e19a1
5e2991a004a5f1ceeb76571f33c796355d10b8f7
refs/heads/master
2023-07-01T14:39:29.481005
2021-08-05T06:23:08
2021-08-05T06:23:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,484
py
import torch import torch.nn as nn import sys sys.path.append("/Users/xingzhaohu/Downloads/code/python/ml/ml_code/bert/bert_seq2seq") from torch.optim import Adam import pandas as pd import numpy as np import os import json import time import bert_seq2seq from bert_seq2seq.tokenizer import Tokenizer, load_chinese_bas...
[ "920232796@qq.com" ]
920232796@qq.com
eb82622e182e44628fdc26aef95db713eff0f165
326c1216782633f493d15730150d8f41db177e2f
/data_process.py
ccc79a77b118be7713254d2c88975e5168bb9486
[]
no_license
JiaojiaoYe1994/face-segmentation
0cfc10776cd5deb8974530d3fd10a417edb00237
bdb8ffccf7d3aaa6785d7869fd7a7ddb7b056764
refs/heads/master
2022-12-21T18:42:52.917032
2020-09-22T09:34:01
2020-09-22T09:34:01
292,716,024
0
0
null
2020-09-04T01:12:31
2020-09-04T01:12:30
null
UTF-8
Python
false
false
1,696
py
''' This script works for dataset preparation. The dataset used in this project comes from multiple source and each dataset has different format. We process each dataset accordingly and finally combine them to the final dataset. Dataset Source: 1. CelebA: https://www.kaggle.com/jessicali9530/celeba-dataset 2. Exemplar...
[ "jiaojiaoye2016@gmail.com" ]
jiaojiaoye2016@gmail.com
60d2fb6c1f5ea8c3c6bb6cfceeb60d70f07d871f
19f698ab74cba74ae52c780f5986d273fb319308
/SWExpertAcademy/D4/1232.py
209942da9fe5a71e6e5177f96a34335d03fa5316
[]
no_license
naye0ng/Algorithm
15023f1070eb7cc5faca9cf7154af2ecffab92c2
1e8848e3e2574b01dc239212ea084b0a4837bc03
refs/heads/master
2021-06-25T14:18:46.117411
2020-10-16T10:47:37
2020-10-16T10:47:37
149,326,399
2
0
null
null
null
null
UTF-8
Python
false
false
1,351
py
""" 1232.사칙연산 """ import sys sys.stdin = open('input.txt','r') class Stack() : def __init__(self): self.top = -1 self. stack = [] def push(self, data): self.stack += [data] self.top +=1 def pop(self): temp = self.stack[self.top] self.stack = self.stack[:sel...
[ "nayeong_e@naver.com" ]
nayeong_e@naver.com
060b3c3a67634fc563621bc8ff9a56a6e126e163
2c0d223b8f630dfb9a6e90e5efd7785cb90379f4
/DataMonitor/monitor/monitor_order_add.py
1844dd10772cbd6a1b68e778edae178d4ff5ccae
[]
no_license
hegajun/Analysis
31ead4e0cf2a2791351386be81888b7dd25b9cbb
e3f2334b3be0a600bf185469be6bd52af172f302
refs/heads/master
2020-03-13T19:03:30.480132
2013-05-29T03:16:13
2013-05-29T03:16:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,347
py
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @author: zhoujiebing @contact: zhoujiebing@maimiaotech.com @date: 2012-08-25 16:18 @version: 0.0.0 @license: Copyright alibaba-inc.com @copyright: Copyright alibaba-inc.com """ import re import urllib2 import sys if __name__ == '__main__': sys.path.append('../../...
[ "zhoujiebing@maimiaotech.com" ]
zhoujiebing@maimiaotech.com
b81ad17a0e498eb428d635565a32212e699fc4a2
70150fa79dcc0f92140f4144f0997fc43ff50bff
/lab_02_01.py
07134ec74a577d0e60e8871bd2973e3e5b911b18
[]
no_license
Captain-on-time/Info-Lab-5
2417905d6a69309dd27a49d6fa2d247165016597
63bff1a396f1682b5119f9c368e3a69a0dadba46
refs/heads/main
2023-02-23T21:23:41.062024
2021-01-24T15:24:30
2021-01-24T15:24:30
332,482,157
0
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
num = int(input("How many times have you been to the Hermitage? ")) if num > 0: print("Wonderful!") print("I hope you liked this museum!") else: print("You should definitely visit the Hermitage!") course = int(input("What is your course number? ")) if course == 1: pr...
[ "noreply@github.com" ]
Captain-on-time.noreply@github.com
3467fc55a3481e62825fbe2bdf75fd363c82e265
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/xlsxwriter/test/comparison/test_textbox37.py
fcee2dcd1cb25fb93119b273ee97058e41f7bafb
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
915
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
02766d5ac9580d59e5ffe2d11f5af33f79f0e98c
db06c6cd07abba0d26c6e6c516ef3e5469e3fb68
/python_project/__init__.py
8c0560713310934ff7ab4b1e02a67c22df2fce9b
[ "MIT" ]
permissive
wasimusu/python_project
77bba8333171de967768d17a47f45a698c933f7f
e2aab3998c2285eda8afe8f5dbb839cbcccd81ea
refs/heads/master
2023-08-14T10:26:59.086216
2021-09-22T19:25:25
2021-09-22T19:25:25
295,631,767
6
5
null
null
null
null
UTF-8
Python
false
false
93
py
from .mathlib import add from .strlib import split from .combo import split_string_add_nums
[ "noreply@github.com" ]
wasimusu.noreply@github.com
e340276963306dd0e9d27bdadb64734baea458b3
305db68aa8055792e0881a8d3c085ffc6830ffe1
/cooldent/apps/params/admin.py
8e58b0662c6863774e3a223f9c2ca8c1b24d7965
[ "BSD-3-Clause" ]
permissive
cpaja/dentalcool
9feaf7f9a39412469032666024715e886b98dd60
0d97a0b5c4897619ee0b224abed22880a9cc34f6
refs/heads/master
2020-03-21T19:42:01.578358
2018-06-28T05:36:29
2018-06-28T05:36:29
138,964,848
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
# _*_ coding: utf-8 _*_ from django.contrib import admin from django import forms from django.utils.translation import ugettext_lazy as _ # models from .models import Person class PersonAdmin(admin.ModelAdmin): search_fields = ('first_name', 'last_name',) list_display = ( 'first_name', 'last_name', '...
[ "cesi.pacori@gmail.com" ]
cesi.pacori@gmail.com
b2b5944e6faeb3d7ad3b5608f6728c36696eee3d
f204c8fa2530f685bf7499d4bf23b019baf4055c
/CoBat-Server/user-facing-command-center.py
0f8d8cf61e29e04d9fd90a7802de9eba986a65c1
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Phuong39/CoBat-RAT-Malware
db4310ff46ac85780988d0572669c508b609e8c7
a32a6e46ab3a0d81c0ba3c854c9b7ae1fd4fc5df
refs/heads/master
2023-08-29T20:09:50.753213
2021-09-05T16:57:24
2021-09-05T16:57:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,172
py
from flask import Flask from flask import request from functools import wraps import psycopg2 import uuid import json app = Flask(__name__) conn = psycopg2.connect("host=127.0.0.1 port=5432 dbname=db user=user password=pwd") sfalse = json.dumps({"success": False}) @app.errorhandler(404) def handle404(error): ht...
[ "14269809+codenoid@users.noreply.github.com" ]
14269809+codenoid@users.noreply.github.com
b2baa6f16704f2315f831411ea57b852cf9a0b28
7322ec6b3352f8cca60bdfef49f8565d7667e478
/OSI.py
739fdd32a5bfa78e35d205d15fcb382531674b09
[]
no_license
jayzoww/OSIModel
21580baad4f71bc0d1c5636be0a038ad5a8881f9
401e91e50a34f23413259c3761cdc718ea30ff29
refs/heads/master
2021-01-20T03:21:17.051192
2017-04-26T23:24:18
2017-04-26T23:24:18
89,520,651
0
0
null
null
null
null
UTF-8
Python
false
false
4,171
py
from collections import OrderedDict import binascii import re class OSIModel: def __init__(self): pass def applicationLayer(self): data = "message" size = len(data) print 'App Layer data:', data print 'size:', size print ' ' return data, size def presentationLayer(self, message, size): data=[] t...
[ "jayzhao94@gmail.com" ]
jayzhao94@gmail.com
bbd4c06da73ee72b6d850c6aa7f9624284ed2171
fb594bf2cd33157a1d1d486e25c8014d6463fe9b
/project-2/object-recognition/train_image_classifier.py
01542da6a3a4218c12989d730954c6ae41628433
[]
no_license
ShirleyHan6/CZ4042-Assignments
6469d2977b07302c5496eb9f83b360e6e5f06500
915b2e53008575741627333103bafbef1a91d600
refs/heads/master
2020-08-14T00:01:36.843411
2019-11-16T05:57:25
2019-11-16T05:57:25
215,060,266
0
2
null
2019-11-16T05:57:27
2019-10-14T14:05:58
Python
UTF-8
Python
false
false
3,659
py
""" Train image classifier given model configuration. The trained model and statistic result are saved in output/image-classifier-{datetime}.pth and output/image-classifier-stat-{datetime}.pkl respectively. The statistic result can be plotted by function helper.plot_train_and_test. """ import argparse import numpy as ...
[ "YLI056@e.ntu.edu.sg" ]
YLI056@e.ntu.edu.sg
b2bbffbbb7d3256b4c3e67c00a644e6cd2cc97bf
ca66a4283c5137f835377c3ed9a37128fcaed037
/Lib/site-packages/sklearn/metrics/cluster/tests/test_supervised.py
9eccf9696f7b88ea5a09c76d8b784abf3a66d5d4
[]
no_license
NamithaKonda09/majorProject
f377f7a77d40939a659a3e59f5f1b771d88889ad
4eff4ff18fa828c6278b00244ff2e66522e0cd51
refs/heads/master
2023-06-04T20:25:38.450271
2021-06-24T19:03:46
2021-06-24T19:03:46
370,240,034
0
0
null
null
null
null
UTF-8
Python
false
false
13,620
py
import numpy as np from sklearn.metrics.cluster import adjusted_mutual_info_score from sklearn.metrics.cluster import adjusted_rand_score from sklearn.metrics.cluster import completeness_score from sklearn.metrics.cluster import contingency_matrix from sklearn.metrics.cluster import entropy from sklearn.metrics...
[ "namithakonda09@gmail.com" ]
namithakonda09@gmail.com
3b2147fdc39d45b2c72e4f2c7804a3e48682757f
30efc8790f69be554c8d890df027a59d8de08e2b
/blog/models.py
f72950618fd5d1702b71f12a069ae16db5fdd2e6
[]
no_license
julianyraiol/djangogirls-blog
2bd1fdbe22b1cbbddda7600b675404cd93ff6af0
97361045f29c90d29c3cfe14137c3dfacba6b7c2
refs/heads/master
2020-04-01T20:55:41.201672
2018-10-18T20:16:52
2018-10-18T20:16:52
153,627,199
1
0
null
null
null
null
UTF-8
Python
false
false
533
py
from django.db import models from django.utils import timezone # Create your models here. class Post(models.Model): author = models.ForeignKey('auth.User', on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateField(default=timezon...
[ "jrr.snf@uea.edu.br" ]
jrr.snf@uea.edu.br
5cef4935661c78552c53eed251192490799624ff
ecdda4ae6fd2846df17cd9b0d58bdb64c400644b
/Greeting.py
97a6cb51c0f0945699c0dc2607a1fb203b041a70
[]
no_license
Kawboy442/MyPython
649be1adbf1c43dc6aea80b3d6de94f4907d142c
35eb83689e5846406f467dcd04ccdf0a6f66aaf9
refs/heads/master
2022-12-09T04:15:52.008475
2020-08-30T03:19:39
2020-08-30T03:19:39
287,887,525
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
x = 10 y = 2 z = 10 print(x == y) print(x != z)
[ "kawboy442@gmail.com" ]
kawboy442@gmail.com
dc1da1c9ef73b27d7f9f46ca1946632acac00f72
c2f88e323b6a83b8bacdc57cd133d6d6dbf4c3fe
/src/rendre/utils.py
8307c0011aa4312502ccd79c0f156c5c7d03bdd6
[]
no_license
claudioperez/rendre
6a6ee9436da5e2e44d45d5c5c167cbe3c962697e
7973742ce4c38735764c3a9babaa899a6521ca29
refs/heads/master
2023-05-31T20:14:35.111339
2021-06-19T04:16:45
2021-06-19T04:16:45
321,309,990
0
0
null
2021-02-11T16:18:16
2020-12-14T10:17:39
Python
UTF-8
Python
false
false
7,994
py
import re, os, sys, shutil from pathlib import Path import logging from typing import List, Set import coloredlogs import yaml logger = logging.getLogger(__name__) coloredlogs.install() class Error(OSError): pass def isrepository(url_string): url_object = urllib.parse.urlparse(url_string)...
[ "50180406+claudioperez@users.noreply.github.com" ]
50180406+claudioperez@users.noreply.github.com
b9779c1b99685242bc97b9e16a2a2a14fe35eb1a
ddfba4105540ff51a1e29fbbeaf8042003310bfa
/jacobianIKE.py
67d272ae3ceaaba65d156a4d60ea5ea6e091f676
[]
no_license
edroderick/ECE590-midterm2
ea0283fc19340c9e439a4c93c49d01914e858c39
df0cb411c89dfd01fbc9a5105403be483bceab33
refs/heads/master
2021-01-19T11:12:11.437212
2014-11-20T03:54:08
2014-11-20T03:54:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,834
py
#!/usr/bin/env python import math import numpy as np from numpy.linalg import inv def jacobianIKE(xg,yg): threshold = .001 alpha = .1 dt1 = .001 dt2 = .001 dt3 = .001 t1 = 0.001 t2 = 0.001 t3 = 0.001 l1 = .3 l2 = .2 l3 = .1 e = 1 while (e > threshold): #compute current position x = l1*math.co...
[ "roderickvt@gmail.com" ]
roderickvt@gmail.com
be41ce397c4e941352db90b3dc624fd17cdb6f4a
43c129b6b9fbea67a23e034a469f7f2374fb2bf0
/slalib.py
92160a3e452a4622caf2efec6aece4e8b405d846
[]
no_license
controlmanagement/modules
5b0bd70fccaaa501eee094b80bda84111ab7b091
d7d06f2e21458d877b02730c2928f7704c85e056
refs/heads/master
2021-01-24T06:18:05.892214
2017-10-26T11:07:11
2017-10-26T11:07:11
35,397,815
0
3
null
2017-10-24T04:31:31
2015-05-11T02:31:20
Python
UTF-8
Python
false
false
6,035
py
import math import ctypes import lib_slalib as lib class slalib_controller(object): _P = ctypes.POINTER _char_p = ctypes.c_char_p _uchar = ctypes.c_ubyte _uchar_p = _P(ctypes.c_ubyte) _ushort = ctypes.c_ushort _ushort_p = _P(ctypes.c_ushort) _int = ctypes.c_int _int_p = _P(ctypes.c_int) _uint = ctypes.c_uint...
[ "h.iwamura@a.phys.nagoya-u.ac.jp" ]
h.iwamura@a.phys.nagoya-u.ac.jp
b1477d2207442ee22314b5403a9f972bfc5de20e
d4f8a0fb7b76df5416467e6ead4756738a663e97
/images_videos_webcam.py
ad42009e98e1b5f65519df5a5aafc40d48f6de72
[]
no_license
cocomon173/OpenCV
237faa2cc597fa255c0853ed7c9bcde918770690
e4a6b3ec5a6013144d066bdcac095e8ecb1993f5
refs/heads/master
2022-11-11T17:22:31.525489
2020-07-04T09:44:44
2020-07-04T09:44:44
277,077,297
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
import cv2 # # cap = cv2.VideoCapture("Resources/파이썬 강의.mp4") #while True: # success, img = cap.read() # cv2.imshow("Video",img) # if cv2.waitKey(1) & 0xFF == ord('q'): # break import cv2 cap = cv2.VideoCapture(0) #비디오 객체 while True: # 계속 카메라로 불러오기 무한루프 ret,img_color = cap.read() #이미지 가쳐오기 ...
[ "cocomon173@gmail.com" ]
cocomon173@gmail.com
7992c9ad590227ee1005fd6bf76442c50c6a898a
be13894bbd0c29a7e5ac191e098075acb83441e0
/hs_restclient/exceptions.py
5ba0ac2e32b4e41cf72bfe9104e96b128b80bced
[]
no_license
amabdallah/hs_restclient
785bd237048df383818c41686de15b21ed5c3881
ad2cc1d36c5331d79c9f93e3f06b484afaee9d06
refs/heads/master
2020-03-30T18:04:24.773757
2018-09-24T20:42:53
2018-09-24T20:42:53
151,482,242
0
0
null
null
null
null
UTF-8
Python
false
false
2,880
py
from .compat import http_responses class HydroShareException(Exception): def __init__(self, args): super(HydroShareException, self).__init__(args) class HydroShareArgumentException(HydroShareException): def __init__(self, args): super(HydroShareArgumentException, self).__init__(args)...
[ "henderson.mark@gmail.com" ]
henderson.mark@gmail.com
2b5e564d6ab41882c760581c6c2064fb3dff0a89
dfd42e01e5eec2a49d4ca6e8d83c528a0502d5c0
/manage.py
e4b8c67c35d4523f463b5d610eef01577b04a3f1
[]
no_license
andber6/myFirstDjangoProject
ba04d4794159b2717d1c1359e2e30ebe4fb05f8c
60fb1a5f1706fd8a8fb11191886da92323e40654
refs/heads/master
2023-08-10T19:26:12.598266
2020-10-23T06:52:41
2020-10-23T06:52:41
304,015,358
0
0
null
2021-09-22T19:38:50
2020-10-14T12:57:10
HTML
UTF-8
Python
false
false
667
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'msp4_django.settings') try: from django.core.management import execute_from_command_line except ...
[ "andre.bergan99@hotmail.com" ]
andre.bergan99@hotmail.com
e43879a27c810b6df0e94eaeb7fada5fea81300f
c96e4f48bdbcee827a7b3a47324d1ab09389834e
/app/models.py
8d399b54798772c25052d62acce77d052f4721f2
[]
no_license
renzhixin/flasky
c39f60cb7832e73f718d2853eba359d8ac854ad4
6e920d2f9174e9b4cb9666f649a90b18bf6bce6b
refs/heads/main
2023-03-27T15:03:52.108453
2021-03-17T14:35:33
2021-03-17T14:35:33
347,313,229
1
0
null
null
null
null
UTF-8
Python
false
false
2,659
py
from werkzeug.security import generate_password_hash, check_password_hash from app import db from flask_login import UserMixin from . import login_manager # login_manager是在app.init文件中定义 from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import current_app @login_manager.user_loader def ...
[ "xtrenzhixin@163.com" ]
xtrenzhixin@163.com
8ea9c38aeddfab4bb77ef6565f76af102d5a3c3c
926feaf07b7b961ab9efce962cb5764d7894e56a
/service/mongodb.py
7cdbeca08670f1f35c8672ee8537baae62043f51
[ "Apache-2.0" ]
permissive
ga-hegsvold/mongodb-source
ac804218c87b5ba4b7c6276037cc510899ed1e3b
1c81f4f751323817944a98f1425ca3735667cf4d
refs/heads/master
2023-05-29T18:57:22.751083
2019-08-12T13:19:56
2019-08-12T13:19:56
133,238,613
0
1
Apache-2.0
2023-05-01T21:26:40
2018-05-13T13:17:27
Python
UTF-8
Python
false
false
2,005
py
import pymongo import datetime import json from bson import ObjectId from datetime import datetime import os import logging # 2017-03-16T10:15:15.677000Z DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ' # set logging log_level = logging.getLevelName(os.environ.get('LOG_LEVEL', 'INFO')) # default log level = INFO logging.ba...
[ "geir.hegsvold@sesam.io" ]
geir.hegsvold@sesam.io
88db90c935b2eb4f151a341b7420f38c5bbfeb67
ffd68c0eb5eb3ef9c81ef68c940c29b3e4fa9cd7
/codice_fiscale/codicefiscale.py
09e7701e0d8e8fbdd877dfd356e73c311acdef43
[]
no_license
ricpol/python_exercises
794706e5c3ed4372e64ef4d7373608e01886c8a4
eb5d7d9a121ff2372f4d1ee0d9e15f3f23471208
refs/heads/master
2016-09-06T03:11:15.519312
2012-04-02T11:20:32
2012-04-02T11:20:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,241
py
# -*- coding: utf-8 -*- """ Calcolo del codice fiscale italiano a partire dai dati anagrafici. Vedi http://it.wikipedia.org/wiki/Codice_fiscale per ulteriori informazioni. Vedi http://it.wikipedia.org/wiki/Omocodia per limitazioni all'uso di questo codice. Questo modulo contiene il motore di calcolo. """ from datet...
[ "ric.pol@libero.it" ]
ric.pol@libero.it
5088d1c8efb01a00cf118d5caacaf7548139aafd
258fccefe5cb77d07f6019179499a2a8b3b783c8
/start.py
5989b3f1e2e654cc8bd1c898441bdd9410d40dfe
[]
no_license
mouryachandra53/youtubemourya
ead7b397d1447a25edbd9bf5b0d58b276907080e
e49dc9a754b3950d428e2ccb3e3046e233bb1d31
refs/heads/main
2023-03-03T12:33:06.305226
2021-02-16T11:48:02
2021-02-16T11:48:02
339,379,827
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
from pyrogram import Client, Filters, StopPropagation, InlineKeyboardButton, InlineKeyboardMarkup @Client.on_message(Filters.command(["start"]), group=-2) async def start(client, message): # return joinButton = InlineKeyboardMarkup([ [InlineKeyboardButton("Movies", url="https://t.me/Mouryac_bot")], ...
[ "noreply@github.com" ]
mouryachandra53.noreply@github.com
238fc407890727201e1ced9c07aac1eef3dae941
5d6245b59dd89da69accc58c82b4b9bde2ef7147
/GUI/timer.py
1e6e784d766c60599edf8d09686989f492408c3b
[]
no_license
ksakkas/Learn-Python
c105e68eec8594f934c6fafd15b39b99c4abf886
99983ef61f7225596f3122a8d1b43d01ec4d0b64
refs/heads/master
2023-01-11T22:31:17.810297
2020-10-18T07:32:52
2020-10-18T07:32:52
295,176,499
1
0
null
2020-09-13T19:09:05
2020-09-13T15:09:43
Python
UTF-8
Python
false
false
280
py
from tkinter import * root = Tk() minutes = Label(root, text="Λεπτά:") minutes.pack(side=LEFT) scale = Scale(root, from_=1, to=20, orient=HORIZONTAL, length=500) scale.pack() button = Button(root, text="Ξεκίνα τώρα", command=quit) button.pack() root.mainloop()
[ "ksakkasuoi@gmail.com" ]
ksakkasuoi@gmail.com
9e61572f67d50a39de89d854f9fd2e9bd849f154
c475cd8531a94ffae69cc92371d41531dbbddb6c
/Data/BlenderScript/2.71/test.py
2d32dfe6ae7a6f0117bddb54cc8ce04b69e69456
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
WolfireGames/overgrowth
72d3dd29cbd7254337265c29f8de3e5c32400114
594a2a4f9da0855304ee8cd5335d042f8e954ce1
refs/heads/main
2023-08-15T19:36:56.156578
2023-05-17T08:17:53
2023-05-17T08:20:36
467,448,492
2,264
245
Apache-2.0
2023-05-09T07:29:58
2022-03-08T09:38:54
C++
UTF-8
Python
false
false
3,371
py
import bpy from xml.etree import cElementTree as ET print("\nRunning character loader:") working_dir = "C:/Users/David/Desktop/WolfireSVN/" actor_xml_path = working_dir + 'Data/Objects/IGF_Characters/IGF_GuardActor.xml' print("Loading actor file: "+actor_xml_path) xml_root = ET.parse(actor_xml_path).getroot() char...
[ "max@autious.net" ]
max@autious.net
7690187092e10418ab3660f7a4c9a7d27f10692d
807dc5d1c596cc0961fb18396890fd8dc1049372
/nanoHUB-binary-mixture-cyclic-peptides/.svn/text-base/Process_COM.py.svn-base
c7f5405154fac581360e058f4678ea325a590e71
[]
no_license
matthewjsullivan1/code-samples-matthew-sullivan
b9916030911e4f9b4663316c78b672bde2de9360
f9dcab057182a87f192fc5c14d4add9baccc6cc1
refs/heads/master
2021-01-20T08:54:37.314931
2017-11-11T03:41:03
2017-11-11T03:41:03
90,200,808
1
0
null
null
null
null
UTF-8
Python
false
false
5,210
from numpy import * import math from Options import Options class Process_COM: def __init__(self, input): options = Options() self.input_ = input self.nummol_ = options.numunits_ self.xcoord_ = [] self.ycoord_ = [] self.zcoord_ = [] self.adjmatrix_ = z...
[ "matthew.j.sullivan1@gmail.com" ]
matthew.j.sullivan1@gmail.com
5c91849062e2885f85a53812bea5f5ceee70b1f8
9e19dbd7edbd7112b1fb6e7205d74b8d2f861b29
/blog/migrations/0003_post_postcomment.py
fce2d4561b02bb856240e05b8227a2ef06dcefdb
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
mkdika/pyniblog
759029e5f56a947659caf72b5155bc4f60c655b0
0612836f7c91076a386d5d64ae22cc4fe9443964
refs/heads/master
2022-12-15T06:26:47.410114
2018-12-17T08:42:28
2018-12-17T08:42:28
144,513,321
1
0
Apache-2.0
2022-12-08T02:46:23
2018-08-13T01:08:18
JavaScript
UTF-8
Python
false
false
1,774
py
# Generated by Django 2.1 on 2018-08-13 02:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0002_tag'), ] ...
[ "mkdika@gmail.com" ]
mkdika@gmail.com
5f370ef2e31dbd11f883fa883d71fbb1f8e88af7
751f0641c2896f554be4556a38c0e63a56fc3409
/outputanalysis/CalculateDiagnostics.py
ddb1981b4c8e7bc5d1904a336ef584dc10f249a3
[ "BSD-3-Clause" ]
permissive
selvex/flee-vis
46faaa1f0daa846922b52b40167a33177c140a7d
4728063ddd82602538356bc9bdb700658737920b
refs/heads/develop
2020-05-02T07:43:29.311311
2019-05-07T12:32:33
2019-05-07T12:33:07
177,825,503
1
0
BSD-3-Clause
2019-05-07T12:35:37
2019-03-26T16:14:56
Python
UTF-8
Python
false
false
2,712
py
import matplotlib import matplotlib.pyplot as plt import numpy as np import StoreDiagnostics as dd import analysis as a def calculate_errors(out_dir, data, name, naieve_model=True): """ Advanced plotting function for validation of refugee registration numbers in camps. """ plt.clf() # data.loc[:,["%s sim" %...
[ "djgroennl@gmail.com" ]
djgroennl@gmail.com
5591cd156705758799a5e27fba12236c37d50142
2d575cd9beed6840de0ca787134354bb2511e44f
/tf_based/snml/np_based/test_multiprocessing.py
823a89d948a24bf43002d2a1bbcc7753c8dba6d6
[]
no_license
truythu169/snml-skip-gram
b949fdb35c6ed89364a8253025f41c7df85f4e7e
02ff190a256724cbd5b656d7ea1cb235abb08863
refs/heads/master
2023-04-16T13:55:17.409637
2020-06-18T09:52:44
2020-06-18T09:52:44
210,846,786
1
0
null
2023-03-24T22:09:21
2019-09-25T13:03:20
Python
UTF-8
Python
false
false
919
py
from tf_based.snml.np_based.model import Model from sklearn.metrics import mean_absolute_error import time if __name__ == "__main__": model = Model('../models/100dim/', '../context_distribution.pkl') start = time.time() snml_length, probs1 = model.snml_length_sampling_multiprocess(8229...
[ "hungpt169@gmail.com" ]
hungpt169@gmail.com
76b75d6c6af4e2442a42808f2d9ff9b81eda8e17
1a12844079c3e39f071f2ec18d3a8e024c47bbde
/3_extract_hw/classifier_fcnn.py
cc5b9e06a3f648d4618118ed0ca7b2ab856ef370
[]
no_license
psengeis/master_thesis_evaluation
7c3bd3aa2b34ad4704deedef121a17d71a187867
836be58e6443579b95bee2ec2655d8e45163f35d
refs/heads/master
2023-04-12T06:32:52.344485
2021-05-04T01:51:17
2021-05-04T01:51:17
363,448,996
0
0
null
null
null
null
UTF-8
Python
false
false
5,062
py
''' This file can be used to test the models on input images. It includes features such as 1) Enabling CRF postprocessing 2) Enabling visualisations 3) Mean IoU calculations if a GT image is provided. Run python 'classifier_fcnn.py -h' for more information ''' import os import argparse import sys import warnings im...
[ "51302314+psengeis@users.noreply.github.com" ]
51302314+psengeis@users.noreply.github.com
52d448c05743fb7b9866e03a1b84835b435faaa3
dd7d8722f9b0bcba72f65e543d6d053c803fead1
/homework/AI2/ExpertSystem.py
ffca24b58ca37bf36e6731262673b2296eec246d
[]
no_license
bharatgupta77/sharad
4079f56446952653412e767c48cdaf5507ab3704
88cb63789be37415dab26721a45fa92458a4d58e
refs/heads/master
2020-08-26T19:33:31.159526
2019-10-23T18:32:59
2019-10-23T18:32:59
217,122,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,505
py
import sys fileName = sys.argv[1] symptomDictionary = {} symptomToDiseaseMap = {} diseaseMatch = {} def read(dataFileName=fileName): dataFile = open(dataFileName, 'r') for line in dataFile: tokens = line.split(',') #print(tokens) symptomsList = [] k=len(tokens[0]) dise...
[ "piyush.chincholikar@gmail.com" ]
piyush.chincholikar@gmail.com
12983b72754b482a37683f20711503f48106a09e
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/space-age/f673f9841b2949e0bd7dc80660c25315.py
09e50b752cffa3b31a4b4ab1a1dc94f6af4c492a
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
933
py
from math import floor class SpaceAge: def __init__(self, seconds: float) -> None: self.seconds = seconds def on_earth(self) -> float: return round(self.seconds / 31557600, 2) def on_mercury(self) -> float: return round(self.on_earth() / 0.2408467, 2) def on_venus(self) -> f...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
767974b507952de8497fd8484519d00a8b1e5f03
41fff566fc5486e9d928cc8ace95a86c85716661
/train-code/.ipynb_checkpoints/trainFloat16-checkpoint.py
18f73bb8d981340795586873831377327c7f877a
[]
no_license
CeciliaPYY/testFloat16
1da8a2e22f097ca650277b0f558db17c1c263a53
eb621a5547d3d6b911d0bdae10cdb7bc3532c838
refs/heads/master
2020-04-07T16:42:20.148655
2018-11-21T11:48:10
2018-11-21T11:48:10
158,539,650
0
0
null
null
null
null
UTF-8
Python
false
false
4,960
py
import mxnet as mx import numpy as np import os, time, shutil from mxnet import gluon, image, init, nd from mxnet import autograd as ag from mxnet.gluon import nn from mxnet.gluon.data.vision import transforms from gluoncv.utils import makedirs from gluoncv.model_zoo import get_model # 分割一下数据集~ # imglist = os.listdi...
[ "18702602693@139.com" ]
18702602693@139.com
c66cf4794093353d10b617c6bc645d36290a7bda
4c88477f18547df725150a5c29371f99af2a2acb
/Codeforces/Problems/Appleman.py
c195b73fa72a2a49da52580a25d02a4e7709ee7a
[]
no_license
SEETHAMRAJU/Competitive_Programming
912b1e81d3cc07b5eeaebbf0086520700867df4e
b456a35766697363c9b77552a50db2ae1cc42ffd
refs/heads/master
2020-03-26T09:15:23.047626
2019-10-06T05:06:42
2019-10-06T05:06:42
144,742,673
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
def update(l,i,j): if(i != 0): l[i-1][j] += 1 if(i!=len(l)-1): l[i+1][j] += 1 if(j!=0): l[i][j-1] += 1 if(j!= len(l[0])-1): l[i][j+1] += 1 return l n = input() l = [] for i in range(0,n): p = raw_input() l.append(p) x = [] for i in range(0,n): ...
[ "spurvaj@gmail.com" ]
spurvaj@gmail.com
3a44673f51aecec53577c003f0719dad6f4cb3a4
669ab595ae969c944a7583508b58b30d348099ce
/demisto_client/demisto_api/models/raw_message.py
562f78bb79ed213c7db2bc878c8706e9f7bc1d27
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
demisto/demisto-py
6f2d357884cee1fd488ad87edd78067a18a4f89a
f44bd0d8a38ac97b071d9c181f0137557077335d
refs/heads/master
2023-08-17T13:41:47.924342
2023-06-05T09:04:27
2023-06-05T09:04:27
81,979,463
67
48
Apache-2.0
2023-09-14T08:19:21
2017-02-14T19:09:05
Python
UTF-8
Python
false
false
3,905
py
# coding: utf-8 """ Demisto API This is the public REST API to integrate with the demisto server. HTTP request can be sent using any HTTP-client. For an example dedicated client take a look at: https://github.com/demisto/demisto-py. Requests must include API-key that can be generated in the Demisto web clie...
[ "1395797+glicht@users.noreply.github.com" ]
1395797+glicht@users.noreply.github.com
f31fffc22d0f0d9ff2a361231c5c89c920a811cb
4caad96a952bc3d6db2dbf16d4a268c32678abfa
/post/post/urls.py
23399f285510b154cbac35d98bf4c0f62cca4ad9
[]
no_license
jvivianwang/bLOG
3a2a6875579b2976140fd10c37aa3b1acb61e3bc
193bbe28fac8d18198389320792989402b151b97
refs/heads/master
2022-11-22T05:05:22.933323
2020-07-27T23:31:05
2020-07-27T23:31:05
282,291,832
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
"""post URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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-based vi...
[ "vwangjianing@gmail.com" ]
vwangjianing@gmail.com
de691e26541b5bab6447b5eb608bc3519d2b21ef
a7cd332b3a21e0a2f78c1a3ffcf67b847ce3d6b7
/v/Lib/site-packages/marshmallow/__init__.py
f846f8889b84730d8048023e5fdfb41d98726bbe
[]
no_license
ElcyJ/ProjetoFinal-ADS_1
dcd23376487999146da42d41e828e9428acec576
0b8a97af18fa3d9d689fd09b09993619ac918a0e
refs/heads/master
2022-11-02T00:39:51.398007
2018-08-27T16:23:43
2018-08-27T16:23:43
145,935,118
1
1
null
2022-10-22T13:41:50
2018-08-24T03:00:07
Python
UTF-8
Python
false
false
713
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from marshmallow.schema import ( Schema, SchemaOpts, MarshalResult, UnmarshalResult, ) from . import fields from marshmallow.decorators import ( pre_dump, post_dump, pre_load, post_load, validates, validates_schema ) from marshmallow.ut...
[ "Elcy James" ]
Elcy James
56dcd39af288060735cc5e09b9ee59454fc41084
d3ba978b2e830a90f9a9b0854cc0884830db7a14
/2-列表、元组与字典/如何对列表进行排序.py
70bc126e24ca5773c031da0d41abd793c393387c
[ "MIT" ]
permissive
yxys01/interview
57c1239b4ecc56b3ec7c4c8ff3f26a8b822c3be7
f8cdf61bc61575dd8c4ed765c4184aeb47526d25
refs/heads/master
2022-04-26T23:06:14.155346
2020-04-25T03:47:59
2020-04-25T03:47:59
258,681,365
1
0
null
null
null
null
UTF-8
Python
false
false
427
py
# 第一题:排序列表的方法 a = [5,4,2,7,3,8,3] a.sort() # 升序排列 [2, 3, 3, 4, 5, 7, 8] print(a) b = [6,4,3,3,76,2,234] c = sorted(b) print(c) # 第二题:sort和sorted的区别 ''' 1、sort属于列表,sorted是独立的函数 2、sort改变列表本身,sorted返回一个排好序的列表副本 ''' print(c == b) # 第三题:降序排列 a.sort(reverse=True) print(a) print(sorted(b,reverse=True))
[ "420393969@qq.com" ]
420393969@qq.com
d67638dfec7d1187d63047a5496b52f5082ba82f
55c3087155f9b18897cd88cb8ec23ac7b0d4b289
/Task3.py
63de34b19277eb28ca4bfbc4652fa6052c3f89d0
[]
no_license
saimy019/PythonPrimers
5dcb2dac79933e717443294b18f7b95765a1540b
a1acad89d010b1b36e23c92d1dfe8b4747cf63a3
refs/heads/master
2022-11-12T16:08:29.486670
2020-07-03T03:54:09
2020-07-03T03:54:09
256,905,902
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
enterTime = float(input('Enter the time in second to determine the stage of the flight ')) #enterTime = float(enterTime) if (enterTime >= 0 and enterTime < 100): print ('The flight is in Stage 1!') elif (enterTime >= 100 and enterTime < 170): print ('The flight is in Stage 2!') elif (enterTime >= 170 and enterT...
[ "63940840+saimy019@users.noreply.github.com" ]
63940840+saimy019@users.noreply.github.com
3f93dd4b32902655f6bb93ba2b92506a35e09731
2a8a6327fb9a7ce8696aa15b197d5170661fb94f
/test/test_proxy_create_unit_of_measure.py
bd4624567b71d70ed1b83154b833d92e29752db3
[]
no_license
moderndatainc/zuora-client
8b88e05132ddf7e8c411a6d7dad8c0baabaa6dad
d50da49ce1b8465c76723496c2561a3b8ebdf07d
refs/heads/master
2021-09-21T19:17:34.752404
2018-08-29T23:24:07
2018-08-29T23:24:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
38,768
py
# coding: utf-8 """ Zuora API Reference # Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A...
[ "jairo.velasco@alertlogic.com" ]
jairo.velasco@alertlogic.com
6340dee6adbac9d8f5bda891d237f9e76491c8a4
44cdcb800301e68cbfe31e5c550ceaf592740783
/Projects/birthday.py
b2404164f9fd759e8d21eda62405fca5ddf7fe53
[]
no_license
cgu2022/NKC---Python-Curriculum
e945716e0a9f4d84bc89f8339a56e8f437da431d
32abccd3417ecb033724c00e787caf5f2424c795
refs/heads/master
2021-06-19T15:29:10.607983
2021-05-01T12:37:48
2021-05-01T12:37:48
196,111,993
2
1
null
null
null
null
UTF-8
Python
false
false
1,149
py
import random # function to generate birthday def genBirthday(): numDays = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] num = random.randint(1, 365) total = 0 monthCounter = 1 date = "" while(num > total + numDays[monthCounter]): total += numDays[monthCounter] monthCounter...
[ "noreply@github.com" ]
cgu2022.noreply@github.com
9cbf4a3bca62efe29a5bbe29e089c41393a440e2
69649d74374ecb2e1fe1f7fcc276e07e9e53b534
/LPAD/ch01_ex01.py
3aa333ca62e2efe7ad4ce784419052574474f47e
[]
no_license
huilight/PythonPractice
7d3a29f3dced6c1e4f0d7520a641fe9292d76910
4d22fa4e7c171fc73eb84d8fd9bc08c639356423
refs/heads/master
2020-06-21T08:09:55.344383
2019-09-09T15:13:41
2019-09-09T15:13:41
197,391,207
0
0
null
null
null
null
UTF-8
Python
false
false
4,298
py
import random import textwrap def show_theme_message(width=72): show_dotted_line() print("\033[lm"+"Attack of The Orcs v0.0.1:" + "\033[0m") msg = ( "The war between humans and their arch enemies, Orcs, was in the " "offing. Sir Foo, one of the brave knights guarding the southern " ...
[ "huilight@outlook.com" ]
huilight@outlook.com
c2e6a84944b141b5dc77b21793f0cc3085caa4fe
ecdf38c65523c3b00251753174a664b720ce5fc4
/ninja_money/views.py
8e33e15712b186d99d23d20dc0137dcbdae735c5
[]
no_license
mixelectronico/NinjaGold
26e2faa7fffa58a142c5571288cebd893d4dab3e
76fcae3814f7e9c6ed1fd2ad08624f7a3cf170b9
refs/heads/master
2023-07-22T13:31:33.988698
2021-08-28T01:34:52
2021-08-28T01:34:52
400,649,346
0
1
null
null
null
null
UTF-8
Python
false
false
1,396
py
from django.shortcuts import render, redirect from random import randint from datetime import datetime # Create your views here. def inicio(request): if 'gold_amount' not in request.session: request.session['gold_amount'] = 0 request.session['moves'] = [] return render(request, 'index.html') ...
[ "mixelectronico@gmail.com" ]
mixelectronico@gmail.com
23d66a5c1b26f0be833b0793a9aab76578a5d77b
88849505c8d71c5fcc8d18fe2da3aa93a97f1e0e
/pages/600.py
7a5c3a37a75edf30e4cef3ad8e503f06dd6d6ea5
[ "MIT" ]
permissive
mscroggs/KLBFAX
5322e025c41b30c6f160699e742c988c9e47ea88
3aaaa0cfe3b9772caa0a87e639efd9bce5b6adf4
refs/heads/master
2021-04-09T16:38:08.581934
2018-06-25T12:18:23
2018-06-25T12:18:26
31,314,664
5
1
null
2017-07-26T19:21:13
2015-02-25T13:26:38
Python
UTF-8
Python
false
false
6,229
py
from page import Page from functions import klb_replace import url_handler class TVPage(Page): def __init__(self, page_num, channel, feed, day): super(TVPage, self).__init__(page_num) self.title = day+"'s TV: "+channel self.in_index = False self.channel = channel self.page_n...
[ "matthew.w.scroggs@gmail.com" ]
matthew.w.scroggs@gmail.com
21daa5d528707849248fcfffbb82c9a8cdcdc4f6
1f61bad833f54f0f1e72e9c3a47677b93ff43b9b
/ParametersParser.py
8be2e42ff9084d4f5027dfd3b0fc6c4851f4dd06
[]
no_license
nick627/MachineLearningMalwareDetection
6611166fcfbc310ed11dc8c1957ac0c29f1d33cb
333f28723583a1868c26d90d3cfbecfef562598c
refs/heads/master
2020-12-12T03:36:22.358166
2020-01-15T08:25:47
2020-01-15T08:25:47
234,033,392
0
0
null
null
null
null
UTF-8
Python
false
false
3,772
py
import sys, os import re, csv from yaswfp import swfparser MALWARE_FOLDER = '\\malware\\' NORMAL_FOLDER = '\\normal\\' TAGS_FILE = 'tags.txt' PARAMETERS_FILE = 'parameters.csv' LABELS_FILE = 'labels.csv' KEY_WORDS = ['ActionScript3', 'ExternalInterface', 'hexTo...
[ "noreply@github.com" ]
nick627.noreply@github.com
97ca46ca00e04fa7ebc437cc01b210f3ec956f47
0a2538e19103b5ffbb179709246b957ec69a4229
/app/api/parsers.py
450da81783e7ea1f012bab8de23054729a56611d
[]
no_license
johndpope/facecam-recognition
1d8cf8c201d4c3115453d6116958ac52349868b3
ff202b7ce2b5b8c9cc1e755be2d42603518b494d
refs/heads/master
2023-05-30T14:11:11.639969
2020-07-09T18:25:47
2020-07-09T18:25:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
from flask_restplus import reqparse from werkzeug.datastructures import FileStorage # Create our parser my_parser = reqparse.RequestParser() # Add parsing arguments my_parser.add_argument('img', location='files', type=FileStorage, required=True)...
[ "clemdecoop.pro@gmail.com" ]
clemdecoop.pro@gmail.com
f2127ea102bdc9cf239348352ea3ae2b45fda7a5
3da5ea477d5b01809a9647ea949773a5a7d1782a
/Test.py
13d700b116e885cf795d2b0b91ce2e2cedf96162
[]
no_license
HeartBack/YDCGallery
e2b902b47eb5c966caae2d16a92f97c10878141e
99a8db0cbf08420046d9d4fa5adb184ca836507c
refs/heads/master
2020-12-02T11:15:26.897474
2017-07-09T10:31:41
2017-07-09T10:31:41
96,621,620
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
import keyboard import pyperclip import os from tkinter import * import subprocess,os def exe(pyfile,dest="",creator=r"E:\software\Python36\Scripts\pyinstaller.exe",ico=r"C:\Users\Yi\Desktop\ico.ico",noconsole=False): insert="" if dest:insert+='--distpath="{}"'.format(dest) else: insert+='--distpath="./"'.f...
[ "Yi@Yi" ]
Yi@Yi
1dffb0b8361ba0b1f56edaffd58b1fe54bca876f
537cc3cd397900596be19e424d4eed8f57e611ea
/Basic/TemperatureConversion.py
0464ff8fdaa0dffaf6644cfd9eedc6f90ec16a2f
[]
no_license
kushal200/python
d6dca96fc452d80181bcc0620e0889095e158d06
11d88936c3eacec10d2c717263b7a99f1ed270a1
refs/heads/main
2023-08-22T05:09:59.981135
2021-10-21T03:10:23
2021-10-21T03:10:23
405,541,327
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
tempC=float(input("Enter the vlaue of Celsius:")) tempF=(tempC*1.8)+32 print("Conversion of celsius into fahrenheit is" ,tempF) tempF=float(input("Enter the value of fahrenheit:")) tempC=(tempF-32)/1.8 print("Conversion of fahrenheit into celsius is" ,tempC)
[ "kushal.shresth2057@gmal.com" ]
kushal.shresth2057@gmal.com
59167cda4822d4d188f0b48379af89caca6a6189
9d4f706d1a92faad93f152e4e5e6c2e3cd05e3fd
/losses.py
3062a8679832da9a7766d52894bfbaaef14b5074
[]
no_license
mdrifaath786/object-detection_yolov4
d4d35085158a79ba787340eb69bdab058cd95d40
6184f4c2815e70a3039dcf74dadd6e37a1d97401
refs/heads/main
2023-03-19T00:30:57.944967
2021-03-04T16:58:45
2021-03-04T16:58:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,330
py
def loss(pred,target): pred_xywh=pred[:,:,:,:,0:4] pred_conf=pred[:,:,:,:,4:5] pred_prob=pred[:,:,:,:,5:] label_xywh=pred[:,:,:,:,0:4] label_conf=pred[:,:,:,:,4:5] label_prob=pred[:,:,:,:,5:] ciou = tf.expand_dims(bbox_ciou(pred_xywh, label_xywh), axis=-1) input_size = tf.cast(in...
[ "noreply@github.com" ]
mdrifaath786.noreply@github.com
d37ef810b717ae73e12929618728d8b28a247649
d471c59b8d18513f7963c301cf092664ac9ea2a9
/PycharmProjects/python_basic_language/lambda.py
0f094c16edd2262a753af0df342fb59e34b7a6a9
[]
no_license
kinqston34/python_program
296dd0e4aedded5aea9e17c2610b7f8ec6115f21
39f1b622804698611caf368c507153e4c77ad0fe
refs/heads/main
2023-08-21T12:24:14.520036
2021-10-21T06:58:35
2021-10-21T06:58:35
383,711,943
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
def func(x,y,z): return x+y+z print(func(1,2,3)) #--------------------- func2 = lambda x,y,z : x+y+z print(func2(2,4,6)) #--------------------- def func(n): if n % 2 == 0: print("偶數") else: print("奇數") func2 = lambda n : "偶數" if n % 2 == 0 else "奇數" print(func2(7777))
[ "aa37741867@gmail.com" ]
aa37741867@gmail.com
ff703a03633c91f322cfbf4945e385b28e55c3bc
942252695ed89a6e7e1639d03ec4bcef39494112
/cnn-image-classification/data_helpers.py
a29726e18853b6779e84f54a9a30214f654bacf7
[]
no_license
hanke3/classification
9f9073e50f9a12d55bb0abcc8ea6455d3aa64147
c634647dda8db3ca038101b01829ca943e99cac5
refs/heads/master
2020-07-12T17:44:29.078729
2018-04-19T15:48:30
2018-04-19T15:48:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,030
py
import numpy as np import glob, os from skimage import io, transform def load_train_valid_data(data_directory, validation_percentage, image_size): # 加载数据 print('Loading data...') x, y = load_images_and_labels(data_directory) print('Total images: {:d}'.format(len(y))) # 随机混淆数据 np.random.seed(1...
[ "984209543@qq.com" ]
984209543@qq.com
85760c7b0528d6889d1cf43b7eefd78ed695ab1a
e59f696a96f216cdeea8d638f05b75bb0c26ef55
/4 Python_Programs/4 Problems on pattern printing/Program_17/Demo.py
e956a8e0ab0a7ab73a0efc26905055e9ebf05ea3
[]
no_license
Aditya-A-Pardeshi/Coding-Hands-On
6858686bdf8f4f1088f6cc2fc0035a53c4875d81
0d72d45e92cb0698129636412f7bf5a8d865fd2f
refs/heads/main
2023-05-29T05:35:34.052868
2021-06-14T18:52:57
2021-06-14T18:52:57
376,928,262
1
0
null
null
null
null
UTF-8
Python
false
false
576
py
''' Accept number of rows and number of columns from user and display below pattern. Input : iRow = 3 iCol = 4 Output : 1 2 3 4 5 6 7 8 9 10 11 12 ''' def Display(row,col): no = 1; if(row<0): row = -row; if(col<0): col = -col; for i in range(row,0,-1): for j in ...
[ "adityapardeshi0078@gmail.com" ]
adityapardeshi0078@gmail.com
61c46f8fe132afc892a621b3c9e20f9587f13a78
f30b91db647dca1f77fffa4b7e26b6c6a68abbc6
/8_kyu/Geometry Basics: Distance between points in 2D/distance_between_points.py
f6923c4d49f908ea1a428b1771bf931288251673
[]
no_license
estraviz/codewars
73caf95519eaac6f34962b8ade543bf4417df5b7
5f8685e883cb78381c528a0988f2b5cad6c129c2
refs/heads/master
2023-05-13T07:57:43.165290
2023-05-08T21:50:39
2023-05-08T21:50:39
159,744,593
10
55
null
null
null
null
UTF-8
Python
false
false
153
py
"""Geometry Basics: Distance between points in 2D """ from math import hypot def distance_between_points(a, b): return hypot(a.x - b.x, a.y - b.y)
[ "javier.estraviz@gmail.com" ]
javier.estraviz@gmail.com
86961c0157bd2cf6a3df6b8b6c798751c6d2f2ca
ce8a52a91d69aac8d1ebd597c4234d677b6a85ec
/users/views.py
1e02ca728641f7716df02b4bef303455b28dd38d
[]
no_license
Yazanmuf/django-project
702b54d8c6faa00960ebd1fb5078d97c358d526e
5d82d054f14c07147544554e6e4ab3a3ab6db413
refs/heads/master
2020-03-31T18:55:14.022390
2018-10-13T22:58:27
2018-10-13T22:58:27
152,478,066
0
0
null
null
null
null
UTF-8
Python
false
false
1,360
py
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required from .forms import UserRegisterForm, ProfileUpdateForm, UserUpdateForm def register(request): if request.method =='POST': form = UserRegisterForm(request.POST) ...
[ "ymufleh@gmail.com" ]
ymufleh@gmail.com
b8a36168d13594a00333c7f951c11beaa75d402a
82ca891008793f570668a7f2c760ae0f22d40494
/src/VAMPzero/Component/Fuselage/Aerodynamic/cD0c.py
58d77c91fd0adbc2cce1979d98d9018b2d3fadb0
[ "Apache-2.0" ]
permissive
p-chambers/VAMPzero
22f20415e83140496b1c5702b6acbb76a5b7bf52
4b11d059b1c7a963ec7e7962fa12681825bc2f93
refs/heads/master
2021-01-19T10:49:06.393888
2015-06-24T10:33:41
2015-06-24T10:33:41
82,208,448
1
0
null
2017-02-16T17:42:55
2017-02-16T17:42:55
null
UTF-8
Python
false
false
2,300
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
[ "daniel.boehnke@dlr.de" ]
daniel.boehnke@dlr.de
a1aa2aa3a36845ae772f870971bceef5bb569802
be75ec9fdb9a1c972a336b0d56b748e530f73e64
/jour5/exo1/connection.py
685f643f5305ad29c0ae91deb47faec406adb4f2
[]
no_license
linda-jemni/Python-Linda-Jemni
bdb6cffa0c9a4a0f42d22ae2ef2b975e6d839fbd
793165092e37223b6db761f2697ba2a6c2ff52c8
refs/heads/master
2023-01-29T20:47:13.883261
2020-12-11T14:57:14
2020-12-11T14:57:14
319,301,534
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
import sqlite3 from sqlite3 import Error def create_connection(db_file): connx = None try: connx = sqlite3.connect(db_file) return connx except Error as e: print(e) return connx def create_table(conn, create_table_sql): try: cu = conn.cursor() cu.e...
[ "linda@gmail.com" ]
linda@gmail.com
e07afaa7913aa1174d7b1fec1f1178ee1145a5c1
96c68bae89e82ede1f98d49bae68a7c394397454
/producer/twitterCrdExample.py
62346ae14f1a2897051920d0dddcdba932ace3aa
[]
no_license
llopacki/twitterapp
e22cf68072ee043f6ea44e55a31bf18d3b772c0c
2f36b22f202e4bd817e9eca1e4e7e8f940bb496f
refs/heads/master
2022-11-16T08:06:36.129781
2019-09-16T18:17:19
2019-09-16T18:17:19
208,598,219
0
2
null
2022-11-03T00:24:50
2019-09-15T13:28:07
Python
UTF-8
Python
false
false
338
py
## AWS credentials ## twitterCrd.py ## This is a stub for twitterCrd.py file (not committed into the git repo ## Remember to create twitterCrd.py file with following content with your twitter developer creds consumer_key = "FillThisOut" consumer_secret = "FillThisOut" access_token_key = "FillThisOut" access_token_secr...
[ "leslaw@lopacki.net" ]
leslaw@lopacki.net
cd963e4397fff6a989fbdd6cd2a95fffb0e8afb2
46e9b1c288d0dd5f627af376d7660903bc0e715f
/three_function.py
74c70f34d511fab9ba2a45ac0e11fe5d08b6304a
[]
no_license
doktorkto/AU
3e075f1cf9c5ba6254c0c210f057cb9bf5a92da9
77a04c779270bec467cfa8637bfa683690e726ae
refs/heads/master
2021-07-15T14:54:15.256777
2020-09-28T07:51:21
2020-09-28T07:51:21
212,978,983
0
0
null
2019-12-18T08:10:44
2019-10-05T10:07:36
null
UTF-8
Python
false
false
456
py
def gcd(a, b): if b == 0: return a else: return gcd(b, a % b) def bezout(a, b): if not b: return (1, 0, a) y, x, g = bezout(b, a % b) return (x, y - (a // b) * x, g) def phi(n): result = n for i in range(2, n): if n % i == 0: whil...
[ "noreply@github.com" ]
doktorkto.noreply@github.com
6a28e526071a3ed9e27c052baf196cfc9543df92
742b958155434ce081f736153a11d4642b1e91c8
/src/plugins/widgets/author/AuthorWidget.py
a097ef8da2345c21542c5185f05d397b2e4100a0
[]
no_license
MozzieCN/alienblog
5bb2b54653d24c90e2b14564ffe71a7e008b6a9c
cb2bbe76e61284d8c68e922b48c0bf0ca0e0970c
refs/heads/master
2016-09-06T11:32:54.524664
2011-12-04T16:07:36
2011-12-04T16:07:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,353
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # plugins.widgets.author.AuthorWidget.py # # Copyright 2011 feiyd # # Created on 2011-11-25 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
[ "feiyd000@gmail.com" ]
feiyd000@gmail.com
df381849a14e46f5c7966add3272a9fb8d3c4827
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/batchai/latest/get_workspace.py
fc07e25056127bae987a2af869402c135333a479
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
5,336
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 from ... import _utilities, _tables __a...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
04cda7ae9c02f4f7624eb6a296b392c87820e95d
b764137fd91d53a2abc2fa2ff29070a1e3eccfa9
/datamol/utils/perf.py
d2aef2aff9e2a049d646a855a98ed6453d7b90e3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
datamol-io/datamol
dca3449e07d3921e3075292271cbbdd96a8d8297
2619c610a6dfbf7cfc2a17f6619fecb5e3eee61b
refs/heads/main
2023-07-27T16:35:17.909994
2023-07-27T15:39:23
2023-07-27T15:39:23
341,603,042
74
12
Apache-2.0
2023-09-04T13:10:51
2021-02-23T15:39:33
Python
UTF-8
Python
false
false
1,885
py
import time from loguru import logger duration_intervals = ( ("weeks", 604800), # 60 * 60 * 24 * 7 ("days", 86400), # 60 * 60 * 24 ("h", 3600), # 60 * 60 ("min", 60), ("s", 1), ("ms", 1e-3), ("us", 1e-6), ) def human_duration(seconds: float, granularity: int = 1): # NOTE(hadim): ...
[ "hadrien.mary@gmail.com" ]
hadrien.mary@gmail.com
96ea20bb9984d253e19134cd2d3507cf14a9e719
6529e4dd8be00788f24aa46ed079d3959c28b4b8
/Case Studies/Regression Analysis/Regression.py
672fbe20cdacb6144b5c0cef107e26039765db5a
[]
no_license
jmalisano/Using_Python_for_Research
f3e80b443dec5767a19e6c629ff94210a6ac7930
065eb995c2eab5f31aab70ecfece3c98fb627d5a
refs/heads/main
2023-01-18T16:20:10.065500
2020-11-08T18:11:02
2020-11-08T18:11:02
311,122,090
0
0
null
null
null
null
UTF-8
Python
false
false
2,705
py
import numpy as np import scipy.stats as ss import matplotlib.pyplot as plt #generate synthetic data n = 100 beta_0 = 5 beta_1 = 2 np.random.seed(1) x = ss.uniform.rvs(size = n)*10 #100 random variables between 0 and 10 y = beta_0+beta_1*x + ss.norm.rvs(loc=0, scale=1, size=n) #y=mx+c+noise. It is assumed that y=mx+c ...
[ "julian.malisano@gmail.com" ]
julian.malisano@gmail.com
a88bef576b03596e2e500519c246aa0f8c42b851
36eed51b5a456e3f239ff47a7f29a24b3fc2602e
/gmuwork/stamp/MASS_algorithm_testing.py
23849969cbd53a04c9387adc65e3175076520bc0
[]
no_license
rajivsarvepalli/Python-Projects
ad4b07563a647837146b877475606ceff2e2e2ed
9655e64e10928598c821db0852275ba9712f9371
refs/heads/master
2023-01-29T14:27:09.777044
2020-12-13T02:13:15
2020-12-13T02:13:15
98,135,265
2
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
import numpy as np import matplotlib.pyplot as plt from gmuwork.shortcuts import quick_txt_reader from scipy.spatial import distance import time from gmuwork.shortcuts import quick_txt_reader from MASS_algorithm_development import STAMP from multiprocessing import Pool,freeze_support from itertools import repeat import...
[ "rajiv@ericavijay.net" ]
rajiv@ericavijay.net
2ee77e9b6aabad5c58fa02cfc6ef96cf487ee72e
978f28b5845599e6682d578246b20129a77df2c4
/Arrays/Swap Minimum.py
936260b72d2a83aa8bc412649ee6df0e497bbe7d
[]
no_license
mdrijwan123/Python-Programs
bfa48e35c1a4172bb5ed2cbb604497693b8d79ca
dae67e7f83fc786a33933c0cb7315246dbef9432
refs/heads/master
2021-07-08T03:29:08.319918
2021-04-18T07:58:55
2021-04-18T07:58:55
240,065,567
1
0
null
null
null
null
UTF-8
Python
false
false
1,147
py
# Python3 program to find the minimum number # of swaps required to sort an array # of distinct element # Function to find minimum swaps to # sort an array def findMinSwap(arr, n): # Declare a vector of pair vec = [] for i in range(n): vec.append([arr[i], i]) # Sort the vector w.r.t the first...
[ "Mohammad.Rijwan@ril.com" ]
Mohammad.Rijwan@ril.com
243d9867b8061153fc7a04ba2758583b186e5005
bfc15a15ea7b8c201479205e0a3dd2cbd3385e1f
/Dataframe/application-6.py
fc64d5dc4f10ff8ee07561a25fe22d1d2675b2ad
[]
no_license
RahulBantode/Pandas_python
b3be5ccecce07f3073d469eb42614b83083cd144
b5115cc40039e79d263d29a5822506a2da0869a8
refs/heads/main
2023-05-31T16:25:39.883123
2021-06-14T06:06:05
2021-06-14T06:06:05
364,258,067
1
0
null
null
null
null
UTF-8
Python
false
false
1,205
py
# Write a program to convert the list of nested dictonary into pandas dataframe import pandas as pd def main(): data = [ { "Student" : [ {"Exam": 90, "Grade": "A"}, {"Exam": 99, "Grade": "O"}, {"Exam": 59, "Grade": "C"} ],...
[ "noreply@github.com" ]
RahulBantode.noreply@github.com
302e4f5d54775811ffb4a5eaa0bf7f0d067c4f6e
c8b9750ceca3a7577a5f7ed92635fa64dc4c8a3b
/ML/dat/fake/step_3_create_data_stats.py
98c569c128ec70f08a37f8ff68c53e0514e3cc6e
[]
no_license
MaazAmjad/fakenews-1
98ce7fd468d132f04e72b0697445a186e0cda9cd
f0dc42e188ccbbbdf01b0462de9c5564e9e222bc
refs/heads/master
2020-04-10T06:28:16.082434
2017-06-25T17:56:46
2017-06-25T17:56:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
import glob import os import numpy as np import pickle dataset_name = 'fake' # Change this to a list of the time slices files = glob.glob('train/*.npy') dat_stats={} dat_stats['name'] = dataset_name dat_stats['T_bins'] = ['all'] dat_stats['prefix'] = 0 T = len(dat_stats['T_bins']) def count_words(split): da...
[ "marirudolph@gmail.com" ]
marirudolph@gmail.com
96ca6a2aa20fc70c52aeb01a51a7601fdc92df16
96a869cb1ebef0ce0f17b2f4003dc47b712023a2
/tests/test_encoder.py
803649b511d1ed96bc398dab95723bb4b93dc47f
[ "MIT" ]
permissive
lincheney/journald-2-cloudwatch
c7b256b9365cddef5bf6193beb72d41a690413b3
54ca0785ffe55565a4af853c6c2d10f974c52e6b
refs/heads/master
2021-07-07T11:28:50.039557
2021-05-08T13:11:21
2021-05-08T13:11:21
54,527,621
5
10
MIT
2021-05-08T08:24:12
2016-03-23T03:21:08
Python
UTF-8
Python
false
false
1,036
py
from unittest import TestCase import datetime import uuid import json import main class JsonEncodeTest(TestCase): def dumps(self, value): return json.dumps(value, cls=main.JournalMsgEncoder) def test_encode_default(self): ''' test encoding is same as defaults ''' for obj in [ ...
[ "lincheney@gmail.com" ]
lincheney@gmail.com
68844fda6183aab0481569bfa8e808c884a38b0c
f0205344df67e01f6c848456d8696332e352b2c5
/opencv_webapp/opencv_webapp/asgi.py
1d3f1f3192e12af8e55145399335a54711b6bdc2
[]
no_license
Mactto/OpenCV_Webapp
4ec729009011db2519d4b051b665acc60bd7018f
341e214f46ad414161a40e20f7f98965398cec6a
refs/heads/master
2023-03-17T11:44:23.420036
2021-02-27T17:14:05
2021-02-27T17:14:05
341,464,801
2
0
null
null
null
null
UTF-8
Python
false
false
402
py
""" ASGI config for opencv_webapp project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "shc9928@gmail.com" ]
shc9928@gmail.com
816bc1f2b26ff3327eaf800a4aa881e8d8d25c92
ff428bee2cbace63c48cd9681fe072043a2b1ef0
/06_Yelp_Sentiment_Analysis/pos_neg.py
2cf012f8ab0ec790ff43ef6f18b265695527d8fa
[]
no_license
theoliao1998/Data-Manipulation-and-Analysis
e3f139e3cbc1217027fdd2b143cc9140061db8f5
64cd0379871dae7e3680e91e575af6ef3e0f227e
refs/heads/master
2020-08-04T18:53:21.273123
2019-12-10T03:20:05
2019-12-10T03:20:05
212,243,627
0
0
null
null
null
null
UTF-8
Python
false
false
2,420
py
#pyspark --master yarn --num-executors 35 --executor-memory 5g --executor-cores 4 --conf spark.ui.port="$(shuf -i 10000-60000 -n 1)" import json import math import re from pyspark import SparkConf, SparkContext from pyspark.sql import SQLContext conf = SparkConf().setAppName("si618_lec6") sc = SparkContext(conf=conf...
[ "theoliao1998@gmail.com" ]
theoliao1998@gmail.com
1cbe7bc5b397893e2a6ed6ca7e72b9c502181a5f
7fb01b504bfbb5bb57a298f9bfe67a5a04fb61f6
/Layers/struct_edge_decoder_layer.py
2fbeb6d106d73af8e851f7fb6ba6a15395781448
[ "BSD-3-Clause" ]
permissive
feiliu01/struct_infused_summ
8484a20ecddcd7b0f3dc974593b5f178e299fa0a
330ae816cf3dc7708b7ee7c24d921f9f5f459e25
refs/heads/master
2020-03-19T00:47:31.522014
2018-05-30T21:51:56
2018-05-30T21:51:56
135,502,005
1
0
null
2018-05-30T22:03:08
2018-05-30T22:03:08
null
UTF-8
Python
false
false
4,754
py
import theano import theano.tensor as T import numpy as np from utility.utility import * from lstm_layer import * from feedforward_layer import * from attention_layer import * from indexing_layer import * ''' LayerName : attention_stanford_decoder_layer Math: h_d_t = LSTM(h_d_(t-1), y_(t-1)) ...
[ "kqsong2014@gmail.com" ]
kqsong2014@gmail.com
4f5adbe134e4234f219d36ceb9f338e77805f34d
6b77ae897567d391780efa7457368301077e2330
/untitled5/aqllie3.py
15b5b4e41368ad2d69808be0dd151b70bebe7041
[]
no_license
wapjin/python-code
03ba079ebc551941c3d0d1122db5fb944070e397
d82f7e64b6c62bf8eb04f960c8fa03b02495b2fc
refs/heads/master
2020-12-13T17:59:25.265569
2020-03-21T08:12:16
2020-03-21T08:12:16
234,477,075
0
1
null
null
null
null
UTF-8
Python
false
false
1,333
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-11-11 8:55 # @Author : liujin # @Email : 1045833538@QQ.com # @File : aqllie3.py import sqlite3 conn = sqlite3.connect('test.db') def sql_colose(): conn.commit() conn.close() def sql_lite(): return conn.cursor() # 建表操作 def new_table(): ...
[ "1045833538@qq.com" ]
1045833538@qq.com
d115e9cbc8f86f38f8bbf1f21c6949e209b82664
9bc72b4fcfd71154e41057ce5b149d6a9f657661
/decision_tree/decision_tree_iris.py
48b6345d73fb70f4c268d57ca3dc16c172102db8
[]
no_license
ChenKangQiang/scikit_learn_test
2f0cc875da64133d2e382bc0d8f5995d939a38d9
3ed52d950c7e5d9ebd18e2f8b2683223a38ea7ca
refs/heads/master
2020-03-12T10:23:02.795612
2018-04-22T13:51:56
2018-04-22T13:51:56
130,571,822
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
from sklearn.datasets import load_iris from sklearn import tree import pydotplus # Iris Iris也称鸢尾花卉数据集 iris = load_iris() clf = tree.DecisionTreeClassifier() clf = clf.fit(iris.data, iris.target) dot_data = tree.export_graphviz(clf, out_file=None) graph = pydotplus.graph_from_dot_data(dot_data) graph.write_pdf("iris.p...
[ "ckq123@outlook.com" ]
ckq123@outlook.com
be5b913111b7671ed74f5a4a6124902cba8e3f12
f4fb0d1c80638440b56e21262f603d3d1f177dd0
/gausspyplus/config_file.py
77e79a07e1cac20c3fa5c5c9a440a85eed0d001b
[]
no_license
Deech08/gausspyplus
7915d3927f6b2a1132cfab2a94e8d3f4d48f9f33
0ea7f91321f648e70984ca6b3f1532ef6b6b53fd
refs/heads/master
2020-06-23T14:54:21.135261
2019-06-26T09:20:46
2019-06-26T09:20:46
198,655,468
1
0
null
2019-07-24T14:48:45
2019-07-24T14:48:44
null
UTF-8
Python
false
false
19,065
py
# @Author: riener # @Date: 2019-03-03T20:27:37+01:00 # @Filename: config_file.py # @Last modified by: riener # @Last modified time: 2019-04-08T10:08:05+02:00 import ast import configparser import collections import os from astropy import units as u from .utils.output import save_file def append_keywords(config...
[ "riener@mpia.de" ]
riener@mpia.de
f0ded2b48bdd2dcc0964e1b543f2a49c1904ea15
d223ac1fd284026ac91d02f35e89b7931e65e860
/Passive/basic_scanner.py
295258a0b3194aa67240f08001984d1a71356771
[]
no_license
k-cross/netseries
6a877e9541ba40aa2da0f0b451c78fb4e716c21a
4df2b1815e6dba19c12d139694d7f05ca687a31a
refs/heads/master
2021-01-17T19:11:02.941587
2016-08-18T22:38:19
2016-08-18T22:38:19
64,818,701
0
0
null
null
null
null
UTF-8
Python
false
false
3,952
py
import sys import socket import os import struct import time import threading from netaddr import IPNetwork, IPAddress from ctypes import * class IP(Structure): _fields_ = [ ('ihl', c_ubyte, 4), ('version', c_ubyte, 4), ('tos', c_ubyte), ('len', c_ushort), ...
[ "kenneth.cross@sjsu.edu" ]
kenneth.cross@sjsu.edu
0cbec1209297db0cea54c9750fda3191b2c81c49
9f387c703dbf4d970d0259424c7b299108c369f5
/dd_sdk_1_0/test/test_pphrase_status.py
d36c5ad98c7760744f7a337d75bf38b94574e36b
[]
no_license
gcezaralmeida/datadomain_sdk_python
c989e6846bae9435c523ab09e230fc12d020f7f1
e102ec85cea5d888c8329626892347571832e079
refs/heads/main
2023-08-23T22:42:47.083754
2021-10-25T21:52:49
2021-10-25T21:52:49
370,805,524
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
# coding: utf-8 """ DataDomain Rest API Documentation No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolu...
[ "root@s6006st157.petrobras.biz" ]
root@s6006st157.petrobras.biz
c26f7da4618ce366665902e5302401eb51b7a7e7
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_168/192.py
4b1c56e8937197c40bcc14b36ab4a85b81054688
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
# 0:right 1:down 2:left 3:up DIRECTION = {'>': 0, 'v': 1, '<': 2, '^': 3, } dx = [1, 0, -1, 0] dy = [0, 1, 0, -1] if __name__ == '__main__': T = int(raw_input()) for t in xrange(1, T + 1): R, C = map(int, raw_input().split()) grid = [raw_input() for _ in xrange(R)] count = 0...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
8b09bf53667b6acc11353ed1ff084d9d679bc7d5
21ed75ebab9b413f485eac4804af3f867146b316
/morseCode.py
0f3fb088caed7806e9900265f7511fe8e8b8db63
[]
no_license
jamesdeal89/notes
d73b9266bf17f60f3d51bd3c502119d3a915ce04
c0326c54c9c0045f2296c04c9d4884df7b63f131
refs/heads/master
2020-12-12T18:24:56.209396
2020-12-10T01:27:05
2020-12-10T01:27:05
234,198,970
0
0
null
null
null
null
UTF-8
Python
false
false
1,058
py
# Allows a user to encode text into morse code #dictionary I stole MORSE_CODE_DICT = { 'A':'.-', 'B':'-...', 'C':'-.-.', 'D':'-..', 'E':'.', 'F':'..-.', 'G':'--.', 'H':'....', 'I':'..', 'J':'.---', 'K':'-.-', 'L':'.-..', 'M':'--', 'N':'-.'...
[ "j891319@protonmail.com" ]
j891319@protonmail.com
3bd1e5e216c3e7be53b982d4c0a73af3ee74e8db
5bc20150d596e49c2d79cc2348e11da76840f2d0
/src/About.py
8093203237e5e1d6fed76d66ea9b8bd7c65304be
[]
no_license
FranzPoize/spoontravel
10e5309b3325581237a8fa4795ba53150228984e
50d6f8de9df7018cd095541377ff8b667d91b9a7
refs/heads/master
2021-01-16T19:58:18.534235
2012-03-03T22:22:07
2012-03-03T22:22:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
from BaseHandler import BaseHandler class About(BaseHandler): def get(self): context = {} self.render_response('about.html', **context)
[ "maxime@werlen.fr" ]
maxime@werlen.fr
01c36da9c29dc88c708b32714c93d002770dc4da
e44112c5ffd151972846d46e8f0ec915fd33e59b
/모의고사3_5.py
028a1b0c35481f882511125154bed650a4d85970
[]
no_license
ssoomin1/CosPro_Test
b6a97a63f5de75bd95731e7e060677db011f668e
1d968a5b964c7a1ca6708fc226e5c1997884b909
refs/heads/main
2023-04-23T10:10:48.055408
2021-05-17T14:59:32
2021-05-17T14:59:32
368,224,543
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
#신수민 def solution(mho_cards,mhe_cards): result=-1 mho_check=0 mhe_check=0 for i in range(13): if mho_cards[i]>mhe_cards[i]: mho_check+=1 elif mhe_cards[i]>mho_cards[i]: mhe_check+=1 if mho_check > mhe_check: result=1 elif mho_check==mhe_check: ...
[ "ssoomin1@naver.com" ]
ssoomin1@naver.com
73fc05ec512bf4748f8e426e062163878f2c6ca7
6443dd730175e0f9e2bb672b9b84fafe66fe4b9d
/tests/app_controllers/test_travis_controller.py
edf09543e5da797272ca66310f709b8977c26711
[]
no_license
cavalrytactics/securethebox-server
8bde4add92b662ea2c106d14199e34db8883267d
c07e6efae469599a2990e222a89a73159339b807
refs/heads/master
2022-12-13T04:00:30.789742
2020-04-04T15:47:13
2020-04-04T15:47:13
239,040,967
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
from app_controllers.travis_controller import TravisController import json import os import pytest pytest.globalData = [] c = TravisController() def loadGlobalData(): with open(str(os.getcwd())+"/tests/globalData.json", "r") as f: pytest.globalData = json.load(f) def test_loadGlobalData(): loadGlob...
[ "charleschong@Charless-MacBook-Pro.local" ]
charleschong@Charless-MacBook-Pro.local