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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1fa1bec403921087904bbafbee13cec85e2e510f | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/trapping_20200617172315.py | 650a589856ffb33697b3724367c5a84d8aea7bf7 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | def trap(arr):
# left = max(arr)
# copy = []
# for j in arr:
# copy.append(j)
# arr.remove(left)
# right = max(arr)
# total = 0
# print(copy)
# for i in range(len(copy)-1):
# total += min(left,right) - copy[i]
# print(min(left,right),"-",copy[i],"==",tota... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
faf578870d909e797d741a23827c62c64eb02853 | 7745e94a0d9776154cfd1ce0062a59723c49bf6c | /lisa/api/models.py | 8d29013279079a0ff898f20f9354093e97e35add | [] | no_license | qpwang/lisa | dc064939fb0878aa803499166306e6b3835b18c9 | 31210138cc4e378808f477a14bf68255875aa164 | refs/heads/master | 2016-09-05T17:23:36.804378 | 2013-06-02T13:53:49 | 2013-06-02T13:53:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,117 | py | # -*- coding: utf-8 -*-
import requests
from uuid import uuid4
from django.db import models
from django.utils import simplejson as json
from lisa.api.consts import *
class ThirdPartySource(models.Model):
'''第三方平台'''
class Meta:
db_table = 'lisa_third_party_source'
verbose_name = verbose_name_p... | [
"wangqingpeng@douban.com"
] | wangqingpeng@douban.com |
94b7e1be0fd25f0aa12ff893420b0737529e1b69 | 4229183b367ecc0a4b981fc0991651482b1a6b17 | /Python/Python_problems/simcross.py | 6b5d3ee7351f36fae9642a2e9bf428ecf4d445ff | [] | no_license | shiraz-30/Intro-to-Python | f0c0ff5afabcf6682aa6690e7b627b1c0f4e2e03 | 6ab108a88afd7cc074cc4ec697e0d79dc3302956 | refs/heads/main | 2023-05-03T22:20:02.315512 | 2021-05-27T15:09:41 | 2021-05-27T15:09:41 | 371,410,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | words = {}
crsswrd = []
rows, columns = {},{}
n,m = map(int, input().split())
for r in range(n):
line = list(input())
crsswrd.append(line)
cnt = []
for index in range(m):
char = line[index]
if char == "b" or char == "r":
cnt.append(index)
if len(cnt) != 0:
rows[... | [
"noreply@github.com"
] | shiraz-30.noreply@github.com |
a0caf1437c5011bb7bf01a76266e9121bf0f748d | 27906d6dec7803622d20d2d111a675c4cb10c88b | /polls/models.py | 60d46cf1f1e5ef7b080e3c4980b460dea9ec60fb | [] | no_license | Vienio99/polls-improved | 90cd6593eeb3b5b78be59b09e8402548f2102fe8 | b1aaba246769d6464b20a8f4b5febbe015a4a0f1 | refs/heads/main | 2023-02-15T16:09:43.318948 | 2021-01-12T17:30:54 | 2021-01-12T17:30:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | from django.db import models
from django.utils import timezone
import datetime
from django.contrib.auth.models import User
# Create your models here.
class Question(models.Model):
question_text = models.CharField(max_length=200)
author = models.ForeignKey(User, default='Default', on_delete=models.CASCADE)
... | [
"kyve96@gmail.com"
] | kyve96@gmail.com |
bd4a9a56ca71e397b6a266f1919c1626b4d31214 | 5390d79dad71ad0d9ff9d0777435dcaf4aad16b3 | /chapter_07/pizza_topping3.py | d3a2378353388256cf56dcd63ea0eaf942f43e2c | [] | no_license | JasperMi/python_learning | 19770d79cce900d968cec76dac11e45a3df9c34c | 8111d0d12e4608484864dddb597522c6c60b54e8 | refs/heads/master | 2020-11-26T08:57:02.983869 | 2020-03-11T10:14:55 | 2020-03-11T10:14:55 | 218,935,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | prompt = "\nPlease input your pizza toppings:"
prompt += "\nEnter 'quit' to end the program. "
message = ""
while True:
pizza_topping = input(prompt)
if pizza_topping == 'quit':
break
else:
print("We'll add " + pizza_topping + ".")
| [
"darmi19@163.com"
] | darmi19@163.com |
dd965d230c675da30a2c48667e417f5269b2c963 | 8f36a508dd5be7198022c50b498874645989f695 | /migrations/versions/fb8c13e85d92_users_table.py | 1bee040bd2666a6f65b938105ef8a750f09d76e8 | [] | no_license | kpfu-ses/uvo-reserves-demo | 2e93fc4716799d1a1ea3553f40ec9da8f72f5ab4 | daaf86ba6c793acc6cc390c6dcc7ed32b1383486 | refs/heads/master | 2023-05-08T22:16:28.152278 | 2021-05-10T01:37:55 | 2021-05-10T01:37:55 | 332,978,501 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """users table
Revision ID: fb8c13e85d92
Revises:
Create Date: 2021-01-26 09:22:58.149529
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'fb8c13e85d92'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto genera... | [
"sumbel.enikeeva@gmail.com"
] | sumbel.enikeeva@gmail.com |
691cf31fb1d7e831b764492ca883e2c4ccfdeb40 | 9a8ff03d27e4822fa27f78fb6ba1dd419725cf90 | /home/urls.py | 1411cf4d18bcdf2783251f6cd45251f3234642e5 | [] | no_license | Pavlo-Olshansky/Social-lemon | 0f9f994fbbba78cd0e7defa1e7fcf60b6ed55165 | 3b7f0b9e8526f6c74d98ad38412151ea2678f808 | refs/heads/master | 2022-12-11T01:12:30.919023 | 2018-06-17T14:57:10 | 2018-06-17T14:57:10 | 104,945,732 | 0 | 0 | null | 2022-11-22T01:53:50 | 2017-09-26T22:48:52 | Python | UTF-8 | Python | false | false | 2,089 | py | from django.conf.urls import url, include
from . import views
from django.contrib.auth import views as auth_views
from .forms import CustomAuthForm
from django.contrib.auth.models import User
urlpatterns = [
# url(r'^$', views.HomePage.as_view(), name='home'),
# Register new user
url(r'^signup... | [
"pavlo.olshansky@gmail.com"
] | pavlo.olshansky@gmail.com |
702cd226d836b66cf059b8ee429af1a734eb9a5f | 595a755dce15abd52669c077a922e2304be0e5c9 | /10/alcatraz.py | b61f9672a60f105d162d8248f97a4a3088179349 | [] | no_license | ktn-andrea/Scripts | 4bcc578edabf8a5b309ff6cab9e76ca34a31dca3 | 2fefcc4dee1c8c295cb3f6f3e9096ff6e8c060ab | refs/heads/master | 2023-08-15T02:28:25.319964 | 2021-05-23T22:37:00 | 2021-05-23T22:37:00 | 370,164,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python3
def open_door(li, begin):
for i in range(1, len(li)+1):
if i % begin == 0:
li[i-1] = rotate_key(li[i-1])
return li
def rotate_key(n):
if n == 0:
return 1
elif n == 1:
return 0
def main():
doors = [0 for i in range(1, 600+1)]
for ... | [
"noreply@github.com"
] | ktn-andrea.noreply@github.com |
b338a87119cd7fc03f0a87fd799d9a67b26c4624 | 9bce3862ef1c6235212a49cf49d300e0532be92c | /politico/api/v1/party/model.py | 71c0e83868241558d163aef959a431d9433a56a7 | [] | no_license | erycoking/Politico_API | d7f5458267dee0736ba154e602869d75514abde2 | 004727b03bfb77bd8d717bcf59b3fa3af5d699a0 | refs/heads/develop | 2022-12-09T08:24:37.589001 | 2019-03-06T01:40:29 | 2019-03-06T01:40:29 | 169,312,409 | 1 | 1 | null | 2022-12-08T01:37:36 | 2019-02-05T21:03:40 | Python | UTF-8 | Python | false | false | 2,779 | py | """
contains the class for party model
"""
class Party:
def __init__(self, id, name, hq_address, logo_url):
self._id = id
self._name = name
self._hq_address = hq_address
self._logo_url = logo_url
@property
def id(self):
# id getter
return self._id
@... | [
"erycoking360@gmail.com"
] | erycoking360@gmail.com |
516ad36a3129084713ccfa27cbe83dfa3be28716 | 3780222b17c869607886bc642ece6fb9def97020 | /samples/NGPF/SDN/PCEP/pcep_pcreq_reply_sr-te_lsp.py | b335888a548c02a3a560b5c0446f73487c8c281e | [
"MIT"
] | permissive | muxiang0906/ixnetwork-api-py | ef28212cf05b6dfa70bf4ab52b8550fdc65535fa | 076f2aa2c09daea8b09a41240b294433950cff18 | refs/heads/master | 2020-06-16T22:59:41.313318 | 2018-10-15T23:14:23 | 2018-10-15T23:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,769 | py | # -*- coding: cp1252 -*-
################################################################################
# #
# Copyright 1997 - 2018 by IXIA Keysight #
# All Rights Reserved. ... | [
"diana.galan@keysight.com"
] | diana.galan@keysight.com |
45b61294eff35191dccce7034918c0fe264fb4b6 | 6273c51bd8ccb582ce86085837b11c77b5cd78d8 | /probability_calculator.py | c89002ff15c4e16a2b641980005905d03fec292d | [] | no_license | diascar/Scientific_computing_python_certification | 0bd7a581c1c98fbcd854ca70d739a3b80125e1ca | e41263fc7a426a1c0d8cfa7ec01baac0d15435e0 | refs/heads/main | 2023-01-27T14:12:15.490368 | 2020-12-10T16:08:44 | 2020-12-10T16:08:44 | 320,321,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | import random
import copy
class Hat:
def __init__(self, **ball_colors):
self.contents = [k for k,v in ball_colors.items() for i in range(v)]
def draw(self, numBalls):
if numBalls >= len(self.contents):
return self.contents
else:
draw_index = sorted(random.sam... | [
"dias.car@outlook.com"
] | dias.car@outlook.com |
82ea0bdbe9f4985777264a35eae47a095cffe75c | 1e1c26ee4c7115f5ec0415974dbae31a3133c3dd | /pyhedrals/pyhedrals.py | 045a6d98acc2e56144d21db361393b076127ce5b | [
"MIT"
] | permissive | HubbeKing/pyhedrals | dadd244ffc28fc3cfc468a9240fddae0e9b036a2 | d4c6063b6c506b5e0f9b72d883e630cfe4d5aed5 | refs/heads/master | 2020-04-12T03:39:47.425481 | 2018-12-18T04:30:43 | 2018-12-18T04:30:43 | 162,273,413 | 0 | 0 | null | 2018-12-18T10:49:25 | 2018-12-18T10:49:24 | null | UTF-8 | Python | false | false | 15,391 | py | # -*- coding: utf-8 -*-
import random
import operator
from builtins import range
import heapq
from collections import Counter as mset
from sly import Lexer, Parser
class UnknownCharacterException(Exception):
pass
class SyntaxErrorException(Exception):
pass
class InvalidOperandsException(Exception):
p... | [
"679547+StarlitGhost@users.noreply.github.com"
] | 679547+StarlitGhost@users.noreply.github.com |
151fc3d2539d862a7734646168592b44017b3203 | 5b76874173ce8890906226b6318f714e649588d6 | /src/test2/settings.py | 97bbe6fcd7a5e7b2261942b26fe9e3122c62c507 | [] | no_license | matthewyau122/test2 | 9f17a43da59b68da766ba782b7d8be98c600f557 | 62cba1cde52281a9afde23c0a8a735d7cb6fea80 | refs/heads/master | 2020-04-12T11:12:30.357479 | 2018-12-19T15:01:49 | 2018-12-19T15:01:49 | 162,452,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | """
Django settings for test2 project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"matthewyau122@gmail.com"
] | matthewyau122@gmail.com |
824a8a299cdea984c99f9a2b32fe5eb4b4918082 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/traits/tests/test_container_events.py | 7ccbe4fccef1ce095b0e9bfabb18e60297996524 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 5,193 | py | # ------------------------------------------------------------------------------
#
# Copyright (c) 2007, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in /LICENSE.txt and may be redistributed only
# under the conditions described... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
859947adf97a94df19974a51555ff9c2bc6505e4 | 601fd7ba7f0f1064dd92e8b4cdc1262cb7b75363 | /dst/data/decoding.py | 9c7c09fddc053f07d433683b0c2e994618a7ecae | [
"MIT"
] | permissive | shmpanski/deep-summarization-toolkit | c5a8e674376b549cbc77cf3ed84693ce73455a0c | e249b7c31c817fedbc3133a3799c23a0115091bd | refs/heads/master | 2022-08-28T17:53:50.429286 | 2019-05-18T16:40:35 | 2019-05-18T16:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | from typing import List, Tuple
import torch
class BeamSearch:
"""BeamSearch Decoder.
Args:
k (int): Beam size.
device (str, optional): Defaults to 'cpu'. Selected device.
"""
def __init__(self, k: int, device='cpu'):
self.k = k
self.device = torch.device(device)
... | [
"gooppe@yandex.ru"
] | gooppe@yandex.ru |
e835d7a6a7ef6f8e1aa01094b3b6f829c0c432b1 | e9880afeafb0ebc5d2ab4ea6e5a8977fa129d3af | /client/spectre_client/client.py | 846413c26a681780b772c536dd031675d618b582 | [] | no_license | nksaraf/spectre | c0714e9bdfdac582dcb40b2ed71a6d485d32d69b | fd9870fa1d187507b8b274fcd24497b3460687bf | refs/heads/master | 2021-09-28T14:07:57.675543 | 2018-11-17T22:24:16 | 2018-11-17T22:24:16 | 91,722,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | import sys
import socket
import select
import json
from constants import *
import utils
import error
class Client():
def __init__(self, name, role, address, handler):
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
... | [
"nsaraf98@gmail.com"
] | nsaraf98@gmail.com |
84cf97d26dd11ddf99377620de38ad861555c852 | d30ff935c61bdc748db551f82979c79867c02e3a | /demo_28.py | 592603c5c4d1ac90e598e56f9e8afe96000fdbc0 | [] | no_license | chenyongzhen-oneShallot/Demo-python | 55f17ae2d769dd3e01c308495f5a391954bd3cdb | 2a8936d4a763132c43fa3c106abf0d95f68c94e7 | refs/heads/master | 2021-09-18T04:21:36.509158 | 2018-07-09T14:56:42 | 2018-07-09T14:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | #coding=utf-8
list=range(1,10)
print([x*x for x in list])
list1=['A','B','C']
list2=['X','Y','Z']
print([m+n for m in list1 for n in list2])
print([x*x for x in list if x%2==0] ) | [
"891354032@qq.com"
] | 891354032@qq.com |
046841638569002374bf14f9e0d8ce60319efd78 | 3e498ff1fe84720875d4af76897bb8dd5a4d2136 | /diary/jsk/17Oct_wk34/positive_pruning.py | b01133fddfc037f4de6d9f04534b6c1f155eaebf | [] | no_license | jehoons/sbie_aging | 24dcf56cbcdfb447b2c3c77c6400f94557f439c1 | 19c2e2e4f4a823a89594f3ea782eb68ed0e08b55 | refs/heads/master | 2021-01-11T18:05:23.538529 | 2020-09-28T06:58:51 | 2020-09-28T06:58:51 | 79,891,078 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,763 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
miraw = pd.read_csv('MI_raw.csv', index_col=0)
agingnetwork = pd.read_csv('Aging_network.csv')
abmap = pd.read_csv('antibody_mapping.csv', index_col=0)
#a/f feedback
#plotting the relationship between mutual information cutoff and the number of in... | [
"reality312@kaist.ac.kr"
] | reality312@kaist.ac.kr |
50be063895332b73baf258fc0eb8bb53092d1908 | 660a2d5f775c49a071fb7e9d61c1b4963bcbfd7e | /CatDog/test.py | 5d29f90be4cfd2f4a34a4249f298dd06fd5199cd | [] | no_license | WXiaoman/mytensorflow | eed0e684523069412bd88c411a1d429970a20564 | 7b838ade92485c2174389a0d48ad73e1ba59dce0 | refs/heads/master | 2020-04-28T15:31:54.489356 | 2019-05-16T03:14:56 | 2019-05-16T03:14:56 | 175,377,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | import tensorflow as tf
import numpy as np
import os, cv2
image_size = 64
num_channels = 3
images = []
path = "D:/anicode/spyderworkspace/catordog/testing_data"
direct = os.listdir(path)
for file in direct:
image = cv2.imread(path + '/' + file)
print("adress:", path + '/' + file)
image = cv2.resize(image,... | [
"wxm2418341934@163。com"
] | wxm2418341934@163。com |
0330944a234507649832eb94badabbf3a9353faf | 5a9194df7e40b1f9694576c88c536b24d22f548b | /tests/projects/test_delete_project.py | 96d89108aa6b51da09f660ffdc8b7e8fd51e6b38 | [] | no_license | jamesstidard/Talk-Zoho | 17230611e40e5c232dcd33bdbd5148ba20543810 | 3a918d72146dae1ed6bb8afee09dfe658a540048 | refs/heads/master | 2021-05-08T10:44:05.881154 | 2017-03-03T16:49:34 | 2017-03-03T16:49:34 | 119,862,940 | 0 | 0 | null | 2018-02-01T16:34:38 | 2018-02-01T16:34:38 | null | UTF-8 | Python | false | false | 383 | py | import pytest
from tests.projects.fixtures import * # noqa
@pytest.mark.gen_test
def test_cant_delete_user(projects, portal_id):
# Deleting user with wrong id always returns true (CRM API limitation)
# Pull projects down to lowest common denominator for unified interface.
success = yield projects.projec... | [
"jamesstidard@gmail.com"
] | jamesstidard@gmail.com |
1963788b916b4fec844fe1d1523a7cfee98a0955 | bd109656f1ea18fe2eae9afffcc0074d75826bb9 | /setup.py | 55a44300afd9c9ab3918a9fb2a7ad146c8367a9b | [
"MIT"
] | permissive | ffreemt/baidu-tr-async-free | 4db5356e24e1ac818a6f641ccad7093113dd32ec | 3bf422e8d8406123479c5bcdb679af795db0ba8f | refs/heads/master | 2021-01-02T21:41:05.188476 | 2020-02-12T06:15:30 | 2020-02-12T06:15:30 | 239,812,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | ''' setup '''
# pylint: disable=invalid-name
from pathlib import Path
import re
from setuptools import setup, find_packages
name = """baidu-tr-async-free"""
description = 'baidu translate for free with async and proxy support'
dir_name, *_ = find_packages()
# dir_name = 'bdtr_async'
curr_dir = Path(__file__).parent
... | [
"yucongo+fmt@gmail.com"
] | yucongo+fmt@gmail.com |
717113e4b09675684d9bf7407e560163fbcb0dc1 | 6e4783a050e438b0b54e4a3f560faa8d97d7197a | /alibi_detect/cd/tensorflow/classifier.py | 8fdbfd8456be3dcef232b8256895a34853e642e3 | [
"Apache-2.0"
] | permissive | chaitalibodke/alibi-detect | a68641ab6c1269074e6f6f9acce1463a2c07d40b | 5927d5b4bd8a4f7209cd42db344145f734074d6b | refs/heads/master | 2023-08-19T05:42:49.233295 | 2021-09-29T09:59:29 | 2021-09-29T09:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,153 | py | from functools import partial
import numpy as np
import tensorflow as tf
from tensorflow.keras.losses import BinaryCrossentropy
from scipy.special import softmax
from typing import Callable, Dict, Optional, Tuple
from alibi_detect.cd.base import BaseClassifierDrift
from alibi_detect.models.tensorflow.trainer import tra... | [
"noreply@github.com"
] | chaitalibodke.noreply@github.com |
2ca63a6a91b03fa8268acf13de70a25c244695e2 | 5bcbb0bc8e861d6915d3f4ba88a4cd494d5482e5 | /odd_even.py | 8ba735b8ee3251299df38d50f08b2471dd2538a3 | [] | no_license | MyronCodeBase/odd_even | 6c14bff3066ec2aa18f3ff292600e19e5d5d3a01 | 6537fc78d5c4d3d144c745f9ba019af9df14cbb8 | refs/heads/master | 2021-08-26T09:26:39.658299 | 2017-11-22T23:14:34 | 2017-11-22T23:14:34 | 111,739,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | def odd_even():
num = int(input("Enter a number "))
if num % 2 == 0:
print("The number entered is even")
else:
print("The number entered is odd")
if num % 4 == 0:
print("The number is also a multiple of 4!")
check = int(input("Enter another number "))
if num % check == 0:
print("Numbers divides ... | [
"noreply@github.com"
] | MyronCodeBase.noreply@github.com |
8dc0074c227b31ff2bf80b4b99499cad9ce4f219 | a16ed9d63ac32a0e88bd66f963039b64e209e4a7 | /tests/test_template.py | d059e847464a28dbb47a1cf4977449347a4c1a86 | [
"MIT"
] | permissive | tiffon/take | 22683d55556016664d961c92e88525543af6f937 | 907a2c4a72f5cbd357eadd4837fa4cae23647096 | refs/heads/master | 2022-07-31T20:43:19.104407 | 2015-07-27T16:49:43 | 2015-07-27T16:49:43 | 32,710,551 | 7 | 1 | MIT | 2022-07-06T19:15:33 | 2015-03-23T04:12:49 | Python | UTF-8 | Python | false | false | 17,739 | py | import os
import pytest
from pyquery import PyQuery
from take import TakeTemplate
from take.parser import InvalidDirectiveError, UnexpectedTokenError, TakeSyntaxError
from take.scanner import ScanError
here = os.path.dirname(os.path.abspath(__file__))
with open(here + '/doc.html') as f:
html_fixture = f.read()
... | [
"joe@jf.io"
] | joe@jf.io |
a1c9abf51f0470a5526a879436bdaedaf39da7ac | fd8833407c00c6cdcdc82623c8b5d4c1fe28da2a | /practicum-1/tasks/task5.py | c009cb66e77638f64a48c449c5472fa705a533fb | [] | no_license | kbalog/uis-dat630-fall2016 | b4eb303ac3d50bb50d764591fb9a9d44f95bb5ae | 5afd4f9e7653b0d148a1c57e3bba84363bf8149c | refs/heads/master | 2020-07-04T05:01:43.001414 | 2016-11-23T11:35:41 | 2016-11-23T11:35:41 | 66,935,163 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | # Computing summary statistics on the Iris dataset
# ================================================
# Task
# ----
# - Load the Iris dataset (`data/iris.data`)
# - Answer the following questions:
# * What is the mean `sepal length` for Iris Setosa?
# * What is the median `petal length` for Iris Virginica?... | [
"krisztian.balog@uis.no"
] | krisztian.balog@uis.no |
adc81a7c0f1bd77f697a1541415e1ac6ffd4fe7d | 57e20cadd88f83521f53ab5973fa44395b1ad05a | /utils/counters.py | 15ff8fee809429cae4c62d4670c41521bd24173c | [] | no_license | horia141/zigzag | 6ac64d72d8ee5a2c25775cbf08f573f6351ecbec | 3bde5d7f5ea05867e796b8a946a9baa75fdf3707 | refs/heads/master | 2020-04-11T03:02:46.446669 | 2016-02-05T20:43:20 | 2016-02-05T20:43:20 | 31,177,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | class Counters(object):
def __init__(self):
self._counters = {}
def inc(self, name, value=1):
key_name = name.lower()
self._counters[key_name] = self._counters.get(key_name, 0) + value
def clear(self):
self._counters = {}
def format(self, padding=''):
if len(se... | [
"horia141@gmail.com"
] | horia141@gmail.com |
9bc17966d5cc0678b54efbfe6068eb6d99105f03 | 6fae09c2b851c47c21157e371a0a38dbbcd3ca74 | /Y/google-cloud-sdk/lib/surface/container/clusters/get_credentials.py | 13de2c65761584442e0f03c1fcba34cfe9cd6340 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/sistemaMonitoreo | 50a4c05bace2be8a691130d2026d2e51d332a008 | c2328afd613864dc4ba1f296946fecf8c7e22843 | refs/heads/master | 2022-11-19T16:18:22.247779 | 2019-01-27T20:49:40 | 2019-01-27T20:49:40 | 282,366,646 | 0 | 0 | null | 2020-07-25T03:59:20 | 2020-07-25T03:59:19 | null | UTF-8 | Python | false | false | 4,549 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"guillermo.nunez@gnp.com.mx"
] | guillermo.nunez@gnp.com.mx |
c8e6f159a7813608572c6285f8a0b42c0a56fd09 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_213/61.py | cfe6796cc3346eddb991963bab839f4b05e02f73 | [] | 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,296 | py | # link: https://code.google.com/codejam/contest/5314486/dashboard#s=1
import string
import time
testIndex=2
problemRoot="d:/prog/versenyek/googlejam"
problemDir="2017/round2"
problemName="B"
inputFiles= ["-example.in", "-small.in", "-large.in"]
outputFiles=["-example.out", "-small.out", "-large.out"]
t... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8e5ce85a2fe571d465291f517c5e0f7843b78794 | 9602495fa11785bfd481d23abf789ce95b751fc2 | /uuv_smac_utils/scripts/create_results_folder | 2869d67a16a6e49988db26873b5acae0ef1b3a18 | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fredvaz/uuv_simulation_evaluation | 0f8d890ad4fccdfe87945ea9e603d81fb1d2f42b | 62c4c999b2ff995b346a06092f1bc57beea5af73 | refs/heads/master | 2020-03-26T08:53:33.214895 | 2018-08-14T13:38:49 | 2018-08-14T13:38:49 | 144,724,563 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,442 | #!/usr/bin/env python
# Copyright (c) 2016 The UUV Simulator Authors.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | [
"fredvaz8@gmail.com"
] | fredvaz8@gmail.com | |
2dea5afe2da38332a9e1ae100dcd6b3750a2efc4 | c6374029bcba930ab37098e8e954067aeae252d8 | /mla/svm/kernerls.py | da289a183af1d605a4fb65c9a4a197ad9621ecda | [
"MIT"
] | permissive | bhumikadhingra/MLAlgorithms | ab6f20aa8a899ff265668155cb4083ec19535429 | 8f002d0804663854eaec41b4ead698caaaf11c69 | refs/heads/master | 2020-08-07T09:12:36.194453 | 2019-10-07T13:15:12 | 2019-10-07T13:15:12 | 213,387,107 | 1 | 0 | MIT | 2019-10-07T13:13:09 | 2019-10-07T13:13:09 | null | UTF-8 | Python | false | false | 721 | py | # coding:utf-8
import numpy as np
import scipy.spatial.distance as dist
class Linear(object):
def __call__(self, x, y):
return np.dot(x, y.T)
def __repr__(self):
return "Linear kernel"
class Poly(object):
def __init__(self, degree=2):
self.degree = degree
def __call__(self,... | [
"me@rushter.com"
] | me@rushter.com |
e66ed88d5c9896e7e12a2b34aceded6f5f181e35 | d3f3a81a2b77db63381424e5fd8b27cf09c1dfdd | /ExpSettings/ParameterSettings.py | 9e790814de091557213e3a4315d13d52ddade216 | [
"Apache-2.0"
] | permissive | gokhangg/Uncertainix | e0d1f92575bfbf45b5ec0564d192e366595c3e28 | feb86dc9a8152bc133f99c56d8f15bf760754218 | refs/heads/master | 2021-06-23T07:23:22.132970 | 2020-12-25T20:55:24 | 2020-12-25T20:55:24 | 181,728,623 | 0 | 0 | Apache-2.0 | 2020-12-25T20:55:25 | 2019-04-16T16:39:07 | Python | UTF-8 | Python | false | false | 2,997 | py | # *=========================================================================
# *
# * Copyright Erasmus MC Rotterdam and contributors
# * This software is licensed under the Apache 2 license, quoted below.
# * Copyright 2019 Erasmus MC Rotterdam.
# * Copyright 2019 Gokhan Gunay <g.gunay@erasmsumc.nl>
# * Licensed... | [
"gokhan.gunay@twtg.io"
] | gokhan.gunay@twtg.io |
447ac3f1ac0d106fba52193d97ee08ee90a288e7 | 0d329ade9fcb1edcb9825d2450b57ad3b467e240 | /plot_batch_1.py | 39e456bc0d6584b7db9ea047f848a5d2b2d2e8da | [
"BSD-2-Clause"
] | permissive | ROBOTICSENGINEER/Automatic-Open-World-Reliability-Assessment | 39539e5ad6456b83780694915525149fbadcaa74 | 459d002e482791e1dc47be681d5c073b6e8fce6d | refs/heads/main | 2023-01-29T21:08:40.788927 | 2020-12-10T23:01:28 | 2020-12-10T23:01:28 | 311,183,904 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,253 | py | import numpy as np
import matplotlib.pyplot as plt
data = np.load('ond_array_plot_4.npz')
threshold = data['threshold']
total_accuracy = data['total_accuracy']
failure = data['failure']
early = data['early']
on_time = data['on_time']
late = data['late']
absolute_error = data['absolute_error']
del data
detected = ... | [
"noreply@github.com"
] | ROBOTICSENGINEER.noreply@github.com |
e6b15aacdac8f257c3240c256182cbdfa5762876 | 684ef6a4a71c4f2a9d1dd475eba53a0db4555199 | /semantic-parserV1.py | 48ce7a341cf0bf702752186741f551f08975ea9b | [] | no_license | MananVyas24/NLP-SemanticParser | 89a3be0193503fd9f0ef08efb668c568189f8be4 | 610cdb9b27b6b32dc30c7c5f18b97699f90b46aa | refs/heads/master | 2022-12-11T11:04:40.346199 | 2019-03-05T03:11:01 | 2019-03-05T03:11:01 | 173,862,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,821 | py | #!/usr/bin/env python
import itertools, sys
from nltk.parse import RecursiveDescentParser, ShiftReduceParser, ViterbiParser
from nltk import Nonterminal, nonterminals, Production, CFG, PCFG
TEST_SENTENCES = [
"acoustic contact on DIFAR 95 , bearing 090 , frequency 1.234 .",
"additional buoys of ... | [
"noreply@github.com"
] | MananVyas24.noreply@github.com |
322f1c3cf85b4af0a0a8a8e4c4ae3a3c539f7dd7 | 71475e1214ac703b095b7a87ecaf89ad17b0ffd9 | /img/settings.py | 66946b6f7dac97ca96f684bb0471359a3cc53298 | [] | no_license | zeng342541425/mzitu | cc3443e8795ba2437a59c51683882b4f16bf630e | 3bc67f8640b4427f140ba25598ddd73c68205c1b | refs/heads/master | 2021-09-01T02:07:26.799526 | 2017-12-24T10:08:20 | 2017-12-24T10:08:20 | 115,096,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,348 | py | # -*- coding: utf-8 -*-
# Scrapy settings for img project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/top... | [
"342541425@qq.com"
] | 342541425@qq.com |
387523e464797ebfe8e34406b339dc22c29b74c0 | 69099b95bb1507b30e6be8d4ad1d39f923833e97 | /BIRL_optimal_demos.py | 737cf7525eced539ad6a481bc67d6068cbee618d | [
"MIT"
] | permissive | dsbrown1331/aima-based-irl | 80d8cc2eafd751bd84bdcda6ad5a9a44060947c6 | 553550030240ae886f4260ece59dd252adb1fc6e | refs/heads/master | 2021-01-17T23:12:03.038606 | 2016-09-27T15:30:27 | 2016-09-27T15:30:27 | 67,889,747 | 1 | 0 | null | 2016-09-10T19:16:56 | 2016-09-10T19:16:55 | null | UTF-8 | Python | false | false | 4,300 | py | import numpy as np
import mdp
from my_birl_batch import *
from my_birl import *
from halfspace_uncertainty import *
from mdp_feature_counts import *
from optimal_teaching import *
from activeLearning import chain_variance
import operator
for size in range(3,4):
print "^^^^^^", size, "^^^^^^^"
f = open('active_... | [
"dsbrown1331@gmail.com"
] | dsbrown1331@gmail.com |
e35261b22200adf9a747944433535b3113ca9f20 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cvtmodel/regnet/src/regnet_y_32gf.py | 83f6c9481a8ff8e6c10c4b8672cd4e25a52daf55 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 39,743 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"zhangxiaoxiao16@huawei.com"
] | zhangxiaoxiao16@huawei.com |
6e4e5e3c39abdfef03c473cadda68be2c7a10fa9 | 97072bdb023dd3916d0ced6aba1c98ec0893ee01 | /tests/test_user.py | 6c75c87d9a88a701e3f63fcc1efb7784b662cc2f | [
"MIT"
] | permissive | AnumAsif/my-blogs | ed814d0559a1d84e138a02b846d2a2b85aacfebd | 8dd6d8e9e84867582dad10265203d1219c00926c | refs/heads/master | 2020-04-23T01:51:07.902859 | 2019-02-19T12:18:42 | 2019-02-19T12:18:42 | 170,826,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | import unittest
from app.models import User
class TestUserModel(unittest.TestCase):
def setUp(self):
self.user = User(password="anum123")
def test_password_setter(self):
self.assertTrue(self.user.password_hash is not None)
def test_no_access_password(self):
with self.ass... | [
"anum@cockar.com"
] | anum@cockar.com |
2c7b79f3a9dd178f469deb356a582fe9faea12ba | a9de160510afc4f42dfb2ffbcbd46bb11151946d | /sum_of_cubes.py | d46037f985dc5a00b7a97faaa25dc41592b709d8 | [] | no_license | Zahidsqldba07/Pyground | 2baa5febfde992a366ac5ac20df846c321c80d90 | e959c9d0a19245dca269786665aec1a77cac4cee | refs/heads/main | 2023-09-02T23:40:07.977111 | 2021-11-10T18:15:40 | 2021-11-10T18:15:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # sum of squares of first n natural numbers
n = int(input("enter the range:"))
sum = 0
for num in range(1,n+1):
a = num**3
sum += a
print(sum)
| [
"44092199+sahil639@users.noreply.github.com"
] | 44092199+sahil639@users.noreply.github.com |
45750ed0c77b767fb0b24c89a098b91d4774a05e | e37132e2bccc4af35d07a8286f1161233f55f0a3 | /csvfile.py | 3965789ece21965520bb95affe6200515e48c8bb | [] | no_license | mannesiddhardha/python | 88fb0be67b547c1bb0d2ea6270641706a96ce064 | 90c6466ee675d28327a91c32b369028e5b5b95db | refs/heads/master | 2023-04-19T10:53:56.662047 | 2021-05-08T21:28:35 | 2021-05-08T21:28:35 | 99,147,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import csv
with open("/Users/mannesiddhardha/Desktop/test.csv",'r') as fr:
cr = csv.DictReader(fr)
for line in cr:
print(line['lastname'],line['email'])
# csv.reader(fr, delimiter=',')
# csv.reader(fr)
# we can get output in list format, parse with the index's
#csv.DictReader(fr)
#output in dictionary ... | [
"noreply@github.com"
] | mannesiddhardha.noreply@github.com |
88e0919771e070e602f208c9d6bbeae0dab97897 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/django/contrib/databrowse/__init__.py | 00928c97e129815852bcfa60bb1f0d6611f9a0ce | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/django/contrib/databrowse/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
959839dfd64481825899d18dbdd5495eb9ff46eb | f113a4f55b8a5f60f3b2e88657772941672a399c | /app/plugin/biu/do/unfollow.py | bffece69aca2ee0c4ce589c432bbb05662bcb217 | [
"MIT"
] | permissive | isouland/PixivBiu | 46e53d769cf4c64f9ec4551c7f5ddc09bc0c8ddb | 181cb2e574d54757bcfa60c8bae2c1d69e7d8189 | refs/heads/master | 2022-04-16T07:51:16.806545 | 2020-02-25T09:48:50 | 2020-02-25T09:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | # pylint: disable=relative-beyond-top-level
from ....platform import CMDProcessor
@CMDProcessor.plugin_register("api/biu/do/unfollow")
class doUnFollow(object):
def __init__(self, MOD):
self.MOD = MOD
def pRun(self, cmd):
if self.MOD.biu.apiType != "public":
return {"code": 0, "ms... | [
"txperl@gmail.com"
] | txperl@gmail.com |
0b5d2010d4ff6dc7c4f0e7f346bd22f223a72f72 | d0f3b01fec0efddf5d8e5585897b14bc3aa76ab7 | /download_data.py | 020ce836dba2fe1119b01845a3822300d48403dc | [] | no_license | vlanabere/Paper_GRAPE | 31b7f5adc47c8b306ae7fdf5ed32bfe34adb366e | 31cfb2be1a36aa6ba50420707ed07e7aab0e139d | refs/heads/master | 2023-02-25T12:38:09.751925 | 2021-01-31T20:03:20 | 2021-01-31T20:03:20 | 334,739,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | import urllib.request, urllib.parse, urllib.error
from bs4 import BeautifulSoup
import ssl
import numpy as np
from datetime import datetime, timedelta
def dst(fecha):
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
# Fecha en formato yyyymm
url = 'http:... | [
"vanina@at.fcen.uba.ar"
] | vanina@at.fcen.uba.ar |
809cb2ce5e45fa69515125514969156d1cc2b361 | df1ad0d061f7982edd0d5e159a1abc31daa8fd4c | /MapEngine/urls.py | 3897fe23f364a999aba4acff7fe86801c740d287 | [
"Apache-2.0"
] | permissive | todor943/mapEngine | f6c056ca1b2fcf6207d5a1bf2b5908f062fff353 | 560c4e9bee2ef20e988124030db801337d8722f1 | refs/heads/master | 2020-12-24T18:55:13.667780 | 2017-11-06T19:54:04 | 2017-11-06T19:54:04 | 57,469,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | """MapEngine 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-b... | [
"tmarkov@sevone.com"
] | tmarkov@sevone.com |
6416d21e330f6923f19a06e51308eeb8b9f4168b | f26d67e3e9f8b90e5d6243279a1c2ce87fa41d46 | /tests/api/test_prodstats.py | c06973ae4a39c46587d14ccdcf139af25afd3c4a | [
"MIT"
] | permissive | OCB-DS/prodstats | cf554e3abee651463e9f81606d4b633f464658a7 | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | refs/heads/master | 2022-11-25T15:30:06.988683 | 2020-08-02T16:08:05 | 2020-08-02T16:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | # import logging
# import pandas as pd
# import pytest
# import starlette.status as codes
# from db.models import ProdStat as Model
# from tests.utils import rand_str
# logger = logging.getLogger(__name__)
# pytestmark = pytest.mark.asyncio
# @pytest.fixture(scope="session")
# def prodstat_records(json_fixture)... | [
"brocklfriedrich@gmail.com"
] | brocklfriedrich@gmail.com |
c4f6240e36dda575fc9260c1c97b59f86c3a335a | 251892cf89523ded40f53fdd95812a4bd2290e67 | /dropdown.py | 233a5f72051b7e68b6ef7beb2b4134f3a242cd7f | [] | no_license | daianalfonso/AutomationFrameworkPython | 0e268917bb2f0d30d5a4998ff2e9abfca745efcf | 733cd7c8365112cd0dbf017afe0291eeed5803bc | refs/heads/master | 2022-11-08T19:55:35.047074 | 2020-06-26T00:17:20 | 2020-06-26T00:17:20 | 275,040,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import time
from selenium import webdriver
from selenium.webdriver.support.ui import Select
driver = webdriver.Chrome ('chromedriver.exe')
driver.get ('http://newtours.demoaut.com/')
time.sleep(2)
driver.find_element_by_link_text('REGISTER').click()
countryDropDown = Select (driver.find_element_by_name('country'))
coun... | [
"alfonsodaiana92@gmail.com"
] | alfonsodaiana92@gmail.com |
7589906133199bddaf9c5d9c0f88472ab35605fa | 8bb055b9ce83955a9e7f3a8cea57453a53bb2d76 | /hashing/set_matrix_zeroes.py | c4cfce06ba1cfce17148c26c1088c6e5124a0576 | [] | no_license | kmaheshwari/ds_and_algo | 6a127c483c8df381162f3ec978962171341c6ec4 | a693cc53ac45a1af253b4e5f97b021f215948d39 | refs/heads/master | 2020-09-16T04:11:26.627345 | 2019-11-23T20:32:09 | 2019-11-23T20:32:09 | 223,649,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | class Solution:
# Set Matrix Zeros
# Given a matrix, A of size M x N of 0s and 1s. If an element is 0, set its entire row and column to 0. Note: This will be evaluated on the extra memory used. Try to minimize the space and time complexity.
# Input Format:
# The first and the only argument of input co... | [
"maheshwari.kajol@gmail.com"
] | maheshwari.kajol@gmail.com |
e9c22973833e68e080736b6dc8759c782f005479 | 78eac5452e96a19ebe5ca8d2c8bd396439bf1437 | /mysite/blog/migrations/0001_initial.py | 9d6345141eed3ba327e97fd68815d5492679ebee | [] | no_license | wucarek/my-first-blog | 892799d89e610078d7e8c7f07a5c23802d784d7f | c15b53d6cf4829f859d9431cbba54695d4322637 | refs/heads/master | 2023-02-10T07:00:14.744723 | 2021-01-11T15:25:12 | 2021-01-11T15:25:12 | 328,668,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.2.17 on 2021-01-11 14:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"a.szczepek@wp.pl"
] | a.szczepek@wp.pl |
dbbaa07f9a98c3e9e22c7689a290eb5bead8165e | cbe9a0a8310637760bbeb7856795effa2ab23598 | /node_modules/uws/build/config.gypi | 78d42950443a6ba7a2a5184af936c77cec71e656 | [
"Zlib"
] | permissive | sruan6/portfolio_v2 | 309f6e36f535de9d6297bb297aaa010110d42e6e | 96ca5e2df47c6e8bb6610caa34dc3f65efdd681d | refs/heads/master | 2023-03-04T22:45:43.287555 | 2018-03-28T21:49:09 | 2018-03-28T21:49:09 | 127,062,387 | 0 | 0 | null | 2022-12-02T00:48:59 | 2018-03-28T00:41:31 | HTML | UTF-8 | Python | false | false | 4,879 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"Stephen@Stephens-MacBook-Pro.local"
] | Stephen@Stephens-MacBook-Pro.local |
292ee9ea10c86bc5da3528223110724fdfec5104 | b43d4b2c7803aa97d11711a0405d265089c39aed | /src/google/cloud/ndb/_remote.py | fea024a5fd30856812b3422f03934091c5f2c631 | [
"Apache-2.0"
] | permissive | takashi8/python-ndb | a3b2b480cd490c7de6fd2683ab961d4449742e78 | f662c16a518efc2fb65598932e7c3524ecec3957 | refs/heads/master | 2020-06-01T17:21:42.884858 | 2019-06-24T22:29:52 | 2019-06-24T22:29:52 | 185,898,553 | 0 | 0 | Apache-2.0 | 2019-05-10T01:41:54 | 2019-05-10T01:41:53 | null | UTF-8 | Python | false | false | 1,879 | py | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | takashi8.noreply@github.com |
8e3b3c81c0c614f310d3cacfaea2b523e16773bf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_344/ch46_2019_03_19_20_17_36_654772.py | 5d9a674902235b456d5687c756b4218f596434d0 | [] | 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 | 212 | py | lista_palavras = []
palavra= input('Escreva uma palavra: ')
while palavra != 'fim':
lista_palvras.append(palavra)
palavra= input('Escreva outra palavra')
if palavra[0] = 'a':
print (palavra)
| [
"you@example.com"
] | you@example.com |
4a091b6d0f3d4382e67c122acfa7fa4c68c9ce22 | 3cd5fe995670963e5e94918ba9f1796e9e7cb73f | /2.7/ipython/profile_default/ipython_config.py | a6a72a3e3e16cbe3fa84b7e6893e98aa0bbcbb58 | [] | no_license | GrahamDumpleton-abandoned/s2i-ipython-notebook | 1e0a7ff4c893b5b743bd250535cedf4b0ed0988f | 33246956d6ba32384f678d4803148ac964b0befe | refs/heads/master | 2021-05-31T04:53:03.679233 | 2016-04-02T09:28:01 | 2016-04-02T09:28:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,830 | py | # Configuration file for ipython.
#------------------------------------------------------------------------------
# Configurable configuration
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# InteractiveSh... | [
"Graham.Dumpleton@gmail.com"
] | Graham.Dumpleton@gmail.com |
33b4d2fa38cb404e2645144a6a3fee4a220b4933 | b697bd0069363f858704cddaae3a6cadd1370df9 | /tests/test_models.py | bae063459f23af447d445e42cb6b1605eb4d92bf | [] | no_license | WillChilds-Klein/bulb-api | c0c140198e7f02bb2d4217e9339cec3ef5675e51 | b8dba15cd7825d182fda75a617cf2e02f62dccee | refs/heads/master | 2021-03-27T15:57:15.664070 | 2017-07-19T04:07:31 | 2017-07-20T02:19:41 | 87,000,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from bulb_api.models import BulbModel
def test_get_hash_key_name():
pass
def test_get_unused_uuid():
pass
def test_to_dict():
pass
def test_update_from_dict():
pass
# TODO: create little tool to test for isomorphisms between pynamo models
# attr types and swagger obj attr types.
| [
"willck93@gmail.com"
] | willck93@gmail.com |
7e69e6b230ecacd463082cc3cf767002e2ed1e73 | 834c37d22d684ea8630ba51be0e038cabf82249b | /scpTestImage.py | d93bc9b301fcbe296d3dc7ce8ffa0e5441b564f0 | [] | no_license | StevenDCK/scripts | 93860e72e12f2947d5b24c574c39c431332a9f9b | b2400308f63b5e9e99ccb8a14c2d745e613f2dd2 | refs/heads/master | 2022-04-19T16:34:55.275819 | 2020-04-19T14:13:39 | 2020-04-19T14:13:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # -*- coding:utf8 -*-
import os
import pdb
#pdb.set_trace()
g_NameSet = 'testPerson.txt'
g_SrcImagePath = '/home1/wiwide_data/train_image/person/JPEGImages'
g_DstImagePath = '/home1/wiwide_data/train_image/person/JPEGImages/'
if __name__=="__main__":
Fin = open(g_NameSet,'r')
Files = Fin.readlines()... | [
"eco.deng@wiwide.com"
] | eco.deng@wiwide.com |
af40ec2a3216a96686e36405aa020664d8c3bbbb | ea03a006c60e67653753cf6cc4d5363c71574973 | /lab1/accounts.py | e8119628b69412e745c22c68e114af1d0c9e2720 | [] | no_license | nmhoangg2000/lab-c4e24 | af2d20fccbc3bcbb6e3c61f4edd8c7dc1bd35ff1 | 7086fbbb34b4606bdfadfd6d7b15a1c0fad8f0a3 | refs/heads/master | 2020-04-10T13:48:43.612546 | 2018-12-24T10:49:24 | 2018-12-24T10:49:24 | 161,059,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from pymongo import MongoClient
uri = "mongodb://admin:admin1@ds227654.mlab.com:27654/c4e24-lab1"
client = MongoClient(uri)
db = client.get_database()
post_collection = db["accounts"]
accounts = [
{
"username": "taoooonguuu",
"email":"nmhoangxxi2000@gmail.com",
"phone":"0123456789",
"password":"hoan... | [
"square2000nguyen@gmail.com"
] | square2000nguyen@gmail.com |
a3d794c9cc14c2302fce4075d20c37c5426c83ab | da46cfffc8c234b0c8f6db53a073c01ce9f41a43 | /hummingbird/ml/operator_converters/_pipeline_implementations.py | 69516ca0ef6e18aa306d5db5b2e0fea31ae37db9 | [
"MIT"
] | permissive | amrofi/hummingbird | 53a75d97c0fdf03b821f5cf0cd3fae23313a6b0d | 28e13a6391e617205dc1518bf40bec082f3250b8 | refs/heads/master | 2022-12-26T22:16:41.676025 | 2020-10-06T00:21:08 | 2020-10-06T00:21:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""
Conve... | [
"noreply@github.com"
] | amrofi.noreply@github.com |
b66cc94e267439ca20172075c33b255396a54cd2 | fe0836d668808c58d51b23bc05a43d508c202b4c | /algorithms/__init__.py | 7a0c714db963ae4db88c29c9fa8cbea2e61730be | [] | no_license | dgchachlakis/Novel-Algorithms-for-Lp-quasi-norm-Principal-Component-Analysis | d6c530ee0ef480aee3cb136ba1c4d92bfb644a9b | 98e0826af8cc167704bb4b978c23cf93a8d26227 | refs/heads/main | 2023-02-24T16:28:15.839404 | 2021-01-15T02:55:07 | 2021-01-15T02:55:07 | 327,658,146 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from .bitflipping import bitflipping
from .bitflipping_deflation import bitflipping_deflation | [
"dimitris@mail.rit.edu"
] | dimitris@mail.rit.edu |
f29fab386e56616de8c34b734ef2137ce87edd4a | a08c41f47cd59dace0a8732b47de2d9f03092fd1 | /pyterprise/user.py | 1a5d39edeb6f58fbfd52ecd5dab1de0600464913 | [
"MIT"
] | permissive | dhurley94/terraform-enterprise-api-python-client | 204284722a0c47964c4d6c564355634d9f012d6e | 19c8b6014761790298259a8e2c32907919766b61 | refs/heads/master | 2020-12-23T09:52:30.954044 | 2020-02-03T02:53:37 | 2020-02-03T02:53:37 | 237,116,198 | 0 | 0 | null | 2020-01-30T01:20:06 | 2020-01-30T01:20:05 | null | UTF-8 | Python | false | false | 509 | py |
class User(object):
def __init__(self, user):
self.id = user.id
attributes = user.attributes
self.username = attributes.username
self.is_service_account = attributes.is_service_account
self.avatar_url = attributes.avatar_url
self.v2_only = attributes.v2_only
... | [
"david@rizse.iom"
] | david@rizse.iom |
3641978af95904682d38d008c2309cf8e3703e1c | d3f8c787ed6347639be41899a10be1ffde45b87d | /week 5/coordinate.py | 1451df55816e23d4fb549637df6dd8c25512ccff | [] | no_license | sanjeevr11/ZeMoSo | c12e1365b23fce9704d645e436ab070a389b472e | 15e536320ac939a931489810f368b0f4c6457c33 | refs/heads/master | 2021-05-11T09:42:43.473993 | 2018-02-15T07:48:52 | 2018-02-15T07:48:52 | 118,084,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | class Coordinate(object):
def __init__(self,x,y):
self.x = x
self.y = y
def getX(self):
# Getter method for a Coordinate object's x coordinate.
# Getter methods are better practice than just accessing an attribute directly
return self.x
def getY(self):
# G... | [
"noreply@github.com"
] | sanjeevr11.noreply@github.com |
465a949f22f4054272cd2405ab347fe896601cd4 | 39989918edbff18ff204d6789546229438e3d864 | /notes/41 - PyGame/bare bones.py | 4d53bb279d5502b1822f9cc32e51a6f0345d895b | [
"MIT"
] | permissive | huynhkGW/ICS-Python-Notes | cb79001cece3b872fcb02968041bf2923ada0ea7 | 22bf3dc2196bdc8a2372e79be63b32164255dcf7 | refs/heads/master | 2023-07-18T07:12:47.357536 | 2021-09-04T23:48:48 | 2021-09-04T23:48:48 | 403,177,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | import pygame
def main():
""" Set up the game and run the main game loop """
pygame.init() # Prepare the pygame module for use
surfaceSize = 480 # Desired physical surface size, in pixels.
clock = pygame.time.Clock() #Force frame rate to be slower
# Create surface of (width, height),... | [
"86579691+huynhkGW@users.noreply.github.com"
] | 86579691+huynhkGW@users.noreply.github.com |
cb444cb6f5d22f2864c28385b794f079f161b9db | 3b2a97eee186ae1e660fd179b412192479c832a0 | /mainapp/urls.py | e6f7fb43551480d1271fc5f53c9c04227c1b95e5 | [] | no_license | vips21/practice12 | 77336bca1b0be140d7be6634d5c2fb3a23fdb3f7 | 13080255457feb22b90bfcc8a83a45af7b618f58 | refs/heads/main | 2023-02-17T03:32:14.617248 | 2021-01-20T13:07:36 | 2021-01-20T13:07:36 | 331,302,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | """mainapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"vprajapati@codal.com"
] | vprajapati@codal.com |
7da6315fe3bd2a36e17fe506d8ab3e19127e2276 | adb294da5d223731ab42430a9b47d730a0afa709 | /client.py | 9b351b07fc6efa1098d8c85bca8345932c827004 | [] | no_license | marianisar/denial-protection | 95c50f1ce39cc3c1f6f895258f43348a9efc0877 | 62fc6f882df5da44b32cd44ae303b87616da5a25 | refs/heads/master | 2020-07-29T07:04:38.946416 | 2019-09-20T05:22:48 | 2019-09-20T05:22:48 | 209,708,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | #############################################################################
# #
# Copyright 2019 MARIA NISAR. #
# All Rights Reserved. #
# ... | [
"noreply@github.com"
] | marianisar.noreply@github.com |
5d92375b837aad65b7fc6cd3e6d5990c37aa2cac | 816111c67ebf078c79e31a8a1269189ee1768829 | /instrument爬虫/updata_excel.py | c4141a0b96360239dfc7f3c6b3971433c40630df | [] | no_license | ZZF98/PythonScript | 1837c22fd5acdf6c102e643ed3fb852f7517dea8 | 3b6c0730f77b894e183fe2388b608a1f134ed7c4 | refs/heads/master | 2021-07-25T06:13:17.598506 | 2020-07-10T07:42:51 | 2020-07-10T07:42:51 | 197,695,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | import xlrd
from xlutils.copy import copy
if __name__ == '__main__':
# 读取
wb = xlrd.open_workbook('instrument.xlsx')
sheetNameArr = wb.sheet_names()
sheet = wb.sheet_by_name(sheetNameArr[0])
# copy,获取sheet
workbooknew = copy(wb)
ws = workbooknew.get_sheet(0)
print(sheet.nrows, sheet.nc... | [
"zhangzefeng98@QQ.com"
] | zhangzefeng98@QQ.com |
50a63199a21d529b0c43e3e0e4d4d29a57cb9eb4 | b303d8d9f8866237cd869babcd690331d8e7e104 | /commandLine/blockChain.py | bdee21036f286273d4dbb9309aabc2ef3eec3db5 | [
"MIT"
] | permissive | Rasesh2005/BlockChain-Model-Python | d833bf6bd4a8e607488448753a393b7117f69b59 | a4299afc7a0ae900ecac2f776fdd52973c0e467d | refs/heads/master | 2023-02-25T14:04:26.997701 | 2021-02-09T19:35:55 | 2021-02-09T19:35:55 | 335,051,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | from block import Block
from transaction import Transaction
class BlockChain:
"""
A class for Making A Block In A Blockchain
...
Attributes
----------
pendingTransactions : list
A variable storing all the pending transactions to be executed by next block
chain : list
A list Rep... | [
"rasesh.udayshetty@gmail.com"
] | rasesh.udayshetty@gmail.com |
c9925053e9d2f58580904a10e702cdfefea098dd | 8e59a43de9d427865c5d67fef39e9a50e44f07ce | /ppstructure/table/tablepyxl/tablepyxl.py | ba3cc0fc499fccd93ffe3993a99296bc6603ed8a | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleOCR | af87db8a804b9a4f4eac8a0b2faf80d1dd71633a | 15963b0d242867a4cc4d76445626dc8965509b2f | refs/heads/release/2.7 | 2023-09-01T04:53:37.561932 | 2023-08-30T02:22:15 | 2023-08-30T02:22:15 | 262,296,122 | 34,195 | 7,338 | Apache-2.0 | 2023-09-14T06:08:11 | 2020-05-08T10:38:16 | Python | UTF-8 | Python | false | false | 4,100 | py | # Do imports like python3 so our package works for 2 and 3
from __future__ import absolute_import
from lxml import html
from openpyxl import Workbook
from openpyxl.utils import get_column_letter
from premailer import Premailer
from tablepyxl.style import Table
def string_to_int(s):
if s.isdigit():
return... | [
"zjwenmu@gmail.com"
] | zjwenmu@gmail.com |
7c6646d07318d4d90843019252fd6669ee456fc9 | 0bc794345a18c312f1a937c33c78bf215f38aa86 | /resnet50-mushrooms/pods/__init__.py | 0b6c274fbccd56610d3d019d4bd0761fef73b363 | [
"Apache-2.0"
] | permissive | leonwanghui/mindspore-jina-apps | a1ea220461e7e38da2b21e18988c844282ae6afb | e2912d9a93689c69005345758e3b7a2f8ba6133e | refs/heads/main | 2023-01-22T11:57:15.698571 | 2020-11-25T04:48:34 | 2020-11-25T04:48:34 | 313,174,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | import numpy as np
from jina.executors.encoders.frameworks import BaseMindsporeEncoder
class MindsporeResNet50(BaseMindsporeEncoder):
"""
:class:`MindsporeResNet50` Encoding image into vectors using mindspore.
"""
def encode(self, data, *args, **kwargs):
from mindspore import Tensor
... | [
"wanghui71leon@gmail.com"
] | wanghui71leon@gmail.com |
68d63a1d6f76afc3108f0986e47f3d49dfec9e21 | af728a099aa77fe8e6a94ef33f46a80adcdd7d3b | /questao5_lista3_media.py | 7c90f2fa357f27ba5ac9c3b85f74794ab00ba533 | [] | no_license | pedrohenriqueads/progr1ads | 9a7fe9bab0a9b9c39230c09771dae6674f620240 | 44a1f87041fd50208775ab959886b527142eb0ff | refs/heads/master | 2021-02-19T05:58:01.304798 | 2020-05-25T00:24:33 | 2020-05-25T00:24:33 | 245,282,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | #5 - Faça um programa para a leitura de duas notas parciais de um aluno. O programa deve calcular a média alcançada por aluno e apresentar:
#- A mensagem "Aprovado", se a média alcançada for maior ou igual a sete;
#- A mensagem "Reprovado", se a média for menor do que sete;
#- A mensagem "Aprovado com Distinção", se a ... | [
"pedrosilva@ads.fiponline.edu.br"
] | pedrosilva@ads.fiponline.edu.br |
d444067745e1329023ab1633378114431728b1dc | eb65d7c79561ec855c36909f91dee8fe83e05b63 | /sendsignal.py | e19473224d25296de1c4220daf13176c158d5446 | [] | no_license | ycarissan/sendsignal | d2058f07acc4d0c8a766057143b2163820bba651 | ff9e8a1e53908e52bd274f201bcafd6effaf807e | refs/heads/master | 2020-06-19T18:23:35.838932 | 2019-07-14T10:04:43 | 2019-07-14T10:04:43 | 196,820,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import RPi.GPIO as GPIO
import time
PIN = 13
SIG1 = "1011011001001011001001001001001001011"
def setup():
GPIO.setmode(GPIO.BOARD)
GPIO.setup(PIN, GPIO.OUT)
GPIO.output(PIN, GPIO.LOW)
def send(msg):
for i in range(10):
for s in msg:
# print(s)
if s=="0":
GPIO.output(PIN, GPIO.LOW... | [
"ycarissan@gmail.com"
] | ycarissan@gmail.com |
d5c5c47e59e9a5bc56b001df5aa50bcd31f4ad79 | ab8117bc5b5040e5107fc59337fabc966cb062ba | /.history/twitter/engine_20200328094821.py | ee9b4bd9c70c405259d659015ba54699abc23b6b | [] | no_license | mirfarzam/DownloaderBro | 6019ab561c67a397135d0a1585d01d4c6f467df4 | 8e0a87dd1f768cfd22d24a7f8c223ce968e9ecb6 | refs/heads/master | 2022-04-16T15:31:38.551870 | 2020-04-15T17:36:26 | 2020-04-15T17:36:26 | 255,090,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py |
import tweepy
import datetime
import configparser
import time
config = configparser.ConfigParser()
config.read('credential.conf')
consumer_key = config['API']["API_key"]
consumer_secret = config['API']["API_secret_key"]
access_token = config['ACCESS']["Access_token"]
access_token_secret = config['ACCESS']["Access_t... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
941ce41828fd22ce8c301d1e665d3e4c93720016 | 7a2dc7f1c9b75f06cdff21170620176a54cb766e | /ClassFIT_AI/Feature_extract/validator.py | e3cbbe8a17734613475bca2281ba2d8341d944ca | [] | no_license | kokong1231/KSJ_project | 2f18c2f9dad6a5d044fdfec46c58c570fff6ce3f | 99dea21e9b674087962e773eab58b842ffc14d6e | refs/heads/master | 2023-02-03T22:43:36.334673 | 2020-12-22T11:50:53 | 2020-12-22T11:50:53 | 323,610,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from w3c_validator import validate
def valid_error_count(url_):
try:
messages = validate(url_)['messages']
if len(messages) >= 10:
return 1
else:
return 0
except:
return 1
| [
"kokong1231@gmail.com"
] | kokong1231@gmail.com |
6c6c348d6824f60b9373434921e7172901d8c8ce | c2f85e6867960a98c72420b8fc79547d67ce4e6b | /Desktop/project-samaritan1011001-master/osna/mytwitter.py | 294a04024acd498dd8e49f3b8d683135b188dc29 | [] | no_license | sahanashreedhar27/ClassificationOfTwitters | f9f0ca96435ca937d66b2391a9bea27e518e8510 | 7db8cfb3a8c8280db45a9122ff6461732884965b | refs/heads/master | 2021-01-16T12:39:27.254198 | 2020-02-26T01:59:58 | 2020-02-26T01:59:58 | 243,125,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,692 | py | """
Wrapper for Twitter API.
"""
import os
from itertools import cycle
import sys
import time
import pandas as pd # Data manipulation
import re, json
import tweepy as tp # API to interact with twitter
from collections import defaultdict
RATE_LIMIT_CODES = set([88, 130, 420, 429])
class Twitter:
def __init__(se... | [
"sahanashreedharkulkarni@dhcp56.merusouth115.iit.edu"
] | sahanashreedharkulkarni@dhcp56.merusouth115.iit.edu |
9855860eeee26a97c487f030f08eba7c367d287f | 4b4828d3c98d76d7bf38f90a015945acc408ddc5 | /PythonAI/Practice/DAY03/src/URL_Parsing_02.py | 0ef5fb5e164d8ee32d3ebfbbf7f7046114d8a105 | [] | no_license | Huh-jae-won/Study | cb5d32728e8dcded492e7edb054b500c91ec607c | e4dbc3fef69bb273b62b866fb5ef2a7250222f10 | refs/heads/main | 2023-06-20T13:06:26.691899 | 2021-07-11T07:43:41 | 2021-07-11T07:43:41 | 362,759,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import sys
import urllib.request as req
import urllib.parse as parse
# 명령줄 매개변수 추출
if len(sys.argv) <= 1 :
print("USAGE : download-forecast-argv <Region Number>")
sys.exit()
regionNumber = sys.argv[1]
# 매개변수를 URL 인코딩
API = "http://www.kma.go.kr/weather/forecast/mid-term-rss3.jsp"
values = { 'stnid': regionNum... | [
"dfr9034@naver.com"
] | dfr9034@naver.com |
d1c882cd7518d64e6ab5ef5850cee5f124f725c9 | c9523078603d63c219b438e4e990cff83d59a3f3 | /acoustic_sight_server/rpi_cam_client/remote_image_client.py | da5355f88cfb867f88581c1629ec813788581a32 | [
"MIT"
] | permissive | Sitin/acoustic-sight | 7797844ed388d533408de5d2f966ef916fd1395c | 5380fa61eba1f763b017ead7a65ccacdae45c821 | refs/heads/master | 2021-09-05T00:06:29.594204 | 2018-01-22T23:51:06 | 2018-01-22T23:51:06 | 104,977,176 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import abc
import io
from PIL import Image
import requests
from acoustic_sight_server.rpi_cam_client.image_retriever import ImageRetriever
class RemoteImageClient(ImageRetriever):
@abc.abstractmethod
def get_latest_image_url(self):
pass
def get_image(self):
url = self.get_latest_image_u... | [
"mikhail.zyatin@gmail.com"
] | mikhail.zyatin@gmail.com |
f154e1687ad528d8599e0ce4905b373e57a24492 | 38829037b34848d696f475af3978a1b7b1e4cbb4 | /app-cp/import.py | 128118da929a2c8e25da6d68602019e9aa6894d9 | [] | no_license | blackrez/bbl-openresty | 6f259e8503ed73a403103cdae3bd0e9c4d5fa79c | 2ed601cb9e7accc71fcb2d24eac4cff28267177d | refs/heads/master | 2020-04-24T21:06:34.360420 | 2019-02-28T21:06:47 | 2019-02-28T21:06:47 | 172,266,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import csv
import mysql.connector
# cnx = mysql.connector.connect(user="root", database="codepostaux")
cnx = mysql.connector.connect(user="root", host="mysql-codepostaux")
try:
cursor = cnx.cursor()
except:
cnx.reconnect(attempts=5, delay=5)
create_db = ("CREATE DATABASE IF NOT EXISTS codepostaux;"
... | [
"nabil@eml.cc"
] | nabil@eml.cc |
4a7b9dedc846fd6a43c1ad6607a1221c06a5c760 | 5226d62f0ce18a86977b50251e7da42a9127cfb2 | /VAE/GUI.py | 7661595c6473d599dfed040fc5d6cfc9685e902b | [] | no_license | xutianyish/APS360-Face_generator | 6bfb1a55a5013f208823e096252d04e95a1ccea6 | 18a2f0dd4e08d1a34d566f77b30378cffa8d14e1 | refs/heads/master | 2022-04-10T03:23:58.344243 | 2020-03-15T17:33:23 | 2020-03-15T17:33:23 | 247,515,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | import random
import matplotlib
import pickle
import numpy as np
import tkinter as Tk
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from VAE_GAN import Encoder, Decoder, VAE
from data_loader import raw_loader
from sklearn.... | [
"noreply@github.com"
] | xutianyish.noreply@github.com |
425319ec3b336304124a9f9fa80717eb5bd98271 | 0c1bc3cfe6218e255370a2ad50a163749ac99ae8 | /Day-5/Program-2.py | 7fc2f80c4f49a80ded84da5e7c5259920b5abc4a | [] | no_license | mukund2000/week-of-code | 01cb32e8d8f128c7beb5e77f2f87994418d95213 | 949e1c8653635f67397fcb3d62af42354248274d | refs/heads/master | 2022-09-15T17:35:22.321806 | 2020-05-30T17:13:41 | 2020-05-30T17:13:41 | 264,487,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 22 16:36:40 2020
@author: Mukund Rastogi
"""
def ReplaceWithGreatest(List):
for i in range(len(List)-1):
List[i]=max(List[i+1:])
return List
n=int(input("Enter the size of list"))
List=list(map(int,input("Enter the elements in list: ").split()))
print("A... | [
"mukundrastogixyz@gmail.com"
] | mukundrastogixyz@gmail.com |
66fb33b0030c894e919d60edb6cc528e910809b4 | 8cce0b5a4be09783016906a36192c52e9daa84aa | /equipment_engineering/meter_reader_4_pointer/main.py | d3851c2d25d932f0aa84ba3adc0c8e32b8fd3a3b | [
"MIT"
] | permissive | Castrol68/opencv-practice | fcc9495553d3a10fb045c396697391a5d2a06f36 | 83d76132d004ebbc96d99d34a0fd3fc37a044f9f | refs/heads/master | 2023-08-31T07:18:51.497902 | 2020-05-03T17:43:12 | 2020-05-03T17:43:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
import abc
from abc import ABC
import argparse
import os
class EquipmentRunner(ABC):
def __init__(self):
self.__successor = None
@property
def mode(self):
if not self.__successor:
exit(404)
return self._... | [
"afterloe@foxmail.com"
] | afterloe@foxmail.com |
09c541212c844618f2b459be9a4d1d7638285512 | 794c0856478e25e772c356f4278754b45dc0b35e | /speedtest.py | 8c584b3d368a26f4d3784fa62bfd081a9a907e5e | [] | no_license | MMotohiro/code_of_Atcoder | 4bb06fc209052089b4898d5386c22910463a1fcb | faf136716c5951a1cb3bd5ee43060ccfbf2f2188 | refs/heads/master | 2020-09-04T13:38:34.510416 | 2019-11-05T13:09:15 | 2019-11-05T13:09:15 | 219,746,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | import time
import random
N, M = map(int, input().split()) #N個の頂点のグラフ、M回ランダムアクセス
#LRD = [[random.randrange(0, N), random.randrange(0, N),random.randrange(0, N)] for i in range(M)]
LRD = [[5,5,5] for i in range(M)]
#N,M 説明
print(f"{N}x{N}配列,{M}回ランダムアクセス")
print()
# リストオンリー
if N <= 10000:
print("リストオンリー")
st... | [
"noreply@github.com"
] | MMotohiro.noreply@github.com |
4af73eaabb0d414ab32303393cf915677d331707 | c940c2477cd90bb6702760688a0ac11c36184e8d | /blog/views.py | f15925975f732b9e57b368c50de6f0404e51c279 | [] | no_license | hotdog45/myblog | 4bd4e4f65f6aad8839d8d970ea9e01ba885b8843 | 768d645c0f3f7ab7fdadd83208d33128417852dd | refs/heads/master | 2020-12-02T22:40:11.014410 | 2017-07-18T17:16:57 | 2017-07-18T17:16:57 | 96,162,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render
# from django.http import HttpResponse
from . import models
def index(request):
articles = models.Article.objects.all()
return render(request,'index.html',{'articles':articles})
def article_page(request,article_id):
article = models.Article.obje... | [
"mac2020@126.com"
] | mac2020@126.com |
df75c53b7d981cf6d3e3ab0994eb1d59a0352387 | 5fe0a5588d27dfcd98e1ebedbf8a2138dcb33117 | /catkin_ws/build/hebi_motor/catkin_generated/pkg.develspace.context.pc.py | b25b5e76901979d9047e62786209734c711542fd | [] | no_license | Florian9638/HEBI_ros | 370511dbeca00c698afea8a969960094b1678930 | 7f7b46b329aec043019a79d7e67fe1c821f20684 | refs/heads/main | 2023-02-06T04:19:48.506795 | 2020-12-15T21:16:13 | 2020-12-15T21:16:13 | 319,692,741 | 1 | 0 | null | 2020-12-15T21:16:14 | 2020-12-08T16:14:07 | Makefile | UTF-8 | Python | false | false | 532 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/florian/Aigritec/X8-9/catkin_ws/devel/include".split(';') if "/home/florian/Aigritec/X8-9/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "hebi_cpp_api;rospy;std_msgs;message_runt... | [
"florian.dallago@aigritec.com"
] | florian.dallago@aigritec.com |
0ecfd4ade7a4eb7a0332e62085aa20d4d147faea | 0550c08cee19be891fde34fa109b5a4ad9f07e3a | /countingdnanucleotides/countingdnanucleotides.py | f3f714d93042c72c14090a87793d10895a8e4cca | [] | no_license | bendavidsteel/rosalind-solutions | 92653c49d8ef938306ac1289ccb4e4cfe4b8d3ae | 0749f2662efcac62383a8476ce13fcdd039928b1 | refs/heads/master | 2020-03-28T04:17:00.959446 | 2018-09-06T21:32:06 | 2018-09-06T21:32:06 | 147,705,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | a = 0
c = 0
g = 0
t = 0
i = 0
with open('rosalind_dna.txt') as stringfile:
s = [x.strip('\n') for x in stringfile.readlines()][0]
for i in range(len(s)):
if s[i] == 'A':
a += 1
elif s[i] == 'C':
c += 1
elif s[i] == 'G':
g += 1
elif s[i] == 'T':
t += 1
output =... | [
"bendavidsteel@gmail.com"
] | bendavidsteel@gmail.com |
6fd83ce906f2fcd72c9fb358506d161faa340b81 | fe5ac5699513ad6375d1ea2d1b3ae46bdc644009 | /pytritex/graph_utils/branch_remover.py | eb19454803362d5dca497b6d0df5b422538f85e4 | [] | no_license | lucventurini/pytritex | ec8a9aba11bf688b073db2e5012081605e291c66 | 2bfde1dedd4d14584f04fe430fbb4401e481b3ad | refs/heads/master | 2023-03-27T08:45:44.104355 | 2020-08-27T09:12:12 | 2020-08-27T09:12:12 | 260,050,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,258 | py | from pytritex.graph_utils.make_super_scaffolds import make_super_scaffolds, add_missing_scaffolds, add_statistics
import time
from dask.distributed import Client
import dask.dataframe as dd
import logging
import os
from functools import partial
import numpy as np
logger = logging.getLogger("distributed.worker")... | [
"lucventurini@gmail.com"
] | lucventurini@gmail.com |
7d2d02d8ebc5d63a3b86766ce7a466835da3c7fb | 16caebb320bb10499d3712bf0bdc07539a4d0007 | /objc/_SleepHealth.py | b5472aa777bd2319957d026862d02d97921f506b | [] | no_license | swosnick/Apple-Frameworks-Python | 876d30f308a7ac1471b98a9da2fabd22f30c0fa5 | 751510137e9fa35cc806543db4e4415861d4f252 | refs/heads/master | 2022-12-08T07:08:40.154553 | 2020-09-04T17:36:24 | 2020-09-04T17:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | '''
Classes from the 'SleepHealth' framework.
'''
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
HKSHSleepDaySummary = _Class('HKSHSleepDaySummary')
H... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
297cab4b6c1665c38f678ba78f9e13312fea5f00 | 00d5c1aa69da3b388d91761497cd17ae2c1bb91d | /tests/elephunk/ui_methods_test.py | c5c8985961fd15eb5277a56b3fc9392d6ae89250 | [
"MIT"
] | permissive | pitluga/elephunk | e33c75f6d4f60e14145543834b722e35ad0c335f | 98649bed91a86b86e008b84093cf85b2d6612b3b | refs/heads/master | 2021-07-13T16:54:54.261255 | 2013-12-18T14:26:11 | 2013-12-18T14:26:11 | 6,147,046 | 0 | 0 | MIT | 2021-03-25T21:56:15 | 2012-10-09T20:14:04 | Python | UTF-8 | Python | false | false | 356 | py | import unittest
from elephunk.ui_methods import *
class HelpersTest(unittest.TestCase):
def test_percent(self):
self.assertEquals("40%", percent(None, 2,5))
def test_percent_with_decimal(self):
self.assertEquals("33.33%", percent(None, 1,3))
def test_infinity(self):
self.assertEqu... | [
"tony.pitluga@gmail.com"
] | tony.pitluga@gmail.com |
0c78464536bc013f9259bddca14b65ba53fc0439 | 3aa2ae88c93b39df4c4c1e9a6e6869fb40350bb3 | /WeiboLike.py | b3c9382a90faa038b5baab890dd42154b7845ff1 | [] | no_license | ycd2003/BulkIndex | 73488e0ebbd4e00aa827882dde8a93e9431c5c02 | 1760bbc408c50ac714bd20949cb88ea2eef36386 | refs/heads/master | 2020-12-15T08:22:15.751894 | 2019-03-13T05:36:53 | 2019-03-13T05:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | # -*- coding:utf-8 -*-
from HbaseTools import HbaseInfoTask
from RedisTools import RedisTools
from elasticsearch import Elasticsearch
from elasticsearch import helpers
import time
import logging
from conf import ES_ADDR,COUNT_NUM
logging.basicConfig(filename='log/weibo_like.log',
format='%(asctime... | [
"416713448@qq.com"
] | 416713448@qq.com |
da4dcc87474cb0400f18d2293569fa8d6e209747 | 1a9852fe468f18e1ac3042c09286ccda000a4135 | /Specialist Certificate in Data Analytics Essentials/DataCamp/06-Writing_Functions_in_Python/e11_a_read-only_open_context_manager.py | 956cc65e4b032f0ee852b2821b8fb559599e271b | [] | no_license | sarmabhamidipati/UCD | 452b2f1e166c1079ec06d78e473730e141f706b2 | 101ca3152207e2fe67cca118923896551d5fee1c | refs/heads/master | 2023-08-14T15:41:24.312859 | 2021-09-22T17:33:01 | 2021-09-22T17:33:01 | 386,592,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """
A read-only open() context manager
Yield control from open_read_only() to the context block, ensuring that the read_only_file object
gets assigned to my_file.
Use read_only_file's .close() method to ensure that you don't leave open files lying around.
"""
from contextlib import contextmanager
import ti... | [
"b_vvs@yahoo.com"
] | b_vvs@yahoo.com |
f9f887d420ccb38721d63c359a51f6cdb77c8b91 | 579a34f1f705d627bc3f7b504206fcc04d58d1bf | /sample_app/main.py | 54dcd7d3f82215de925ced4c5621ac284b44eb58 | [] | no_license | aldricaj/jenkins-test-repo | b5ae6216d25b52e7ac2c8a73724cf0da79b92998 | 50f2d900afea05fe3ab4a8da22986400c45df931 | refs/heads/master | 2021-06-10T19:53:22.121251 | 2019-05-30T14:45:45 | 2019-05-30T14:45:45 | 138,117,009 | 0 | 0 | null | 2021-03-19T23:32:32 | 2018-06-21T03:56:48 | Python | UTF-8 | Python | false | false | 201 | py |
import flask_routes as routes
from gevent.wsgi import WSGIServer
def main():
HTTP_SERVER = WSGIServer(('',5080), routes.app)
HTTP_SERVER.serve_forever()
if __name__ == "__main__":
main() | [
"aldricaj@mail.uc.edu"
] | aldricaj@mail.uc.edu |
7989f16a8528778f1e35a6f8b1fb39089e4811e0 | 01ec3bd746e0a99e795e7758a27a1745368d2857 | /taskmate/urls.py | 8b265dc6de4c5caa4c2a33b2451634fb78d9a098 | [] | no_license | Gaurav4code/House_price_prediction | 1b23f7cf8f3b6bc7150f2a5524a3dbc838c223fc | afe558c57152ebbbcbaae2a3acff5e86c5f5ba1b | refs/heads/master | 2023-06-26T10:02:49.798201 | 2021-07-19T12:23:58 | 2021-07-19T12:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.contrib import admin
from django.urls import path, include
from todolist_app import views as todolist_views
urlpatterns = [
path('admin/', admin.site.urls),
path('', todolist_views.index, name='index'),
path('todolist/', include('todolist_app.urls')),
path('contact', todolist_views.contact... | [
"shubhamsarda99@yahoo.com"
] | shubhamsarda99@yahoo.com |
0b5bce0fba10d328e955aeba3ab3d9ea81866db8 | 0614a50bf1f90c0ebb96f85d224f4ff0b7821874 | /adaline.py | aa64a6ddc6c1a5328950edaada387fa1f861af56 | [] | no_license | husainshaikh895/Machine-Learning-Algorithms | e533890c9f341ff25d90b2ec3d81dc272670bf73 | a832a87881ece036dc5ad99dfbfa2d58ffb4a4c2 | refs/heads/master | 2020-05-03T08:39:22.682765 | 2020-01-08T12:16:06 | 2020-01-08T12:16:06 | 178,531,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
class AdalineGD:
def __init__(self, epoch = 100, learn_rate = 0.01, random_state = 1):
# since updates to weights are real numbers it needs more iterations to converge as compared to Perceptron
self.epoch = epoch
self.learn_rate = learn_rate... | [
"noreply@github.com"
] | husainshaikh895.noreply@github.com |
d891d3619c03f925a4a0ca508048fb88fa43012e | cd72d36fa6196c4394df16cd9edcc935e209c8aa | /app/user/views.py | 47d3b399c743bc6b0407d5c6cfede940fdf2b852 | [] | no_license | sebastbonilla/recipe-app-api | 17a82563af4371093c20a86256f7c893db2c9545 | f48959b36a8745045b4cccc3326c20a7ef93924d | refs/heads/master | 2023-01-10T21:28:21.005262 | 2020-11-08T18:53:41 | 2020-11-08T18:53:41 | 296,969,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | from rest_framework import generics, authentication, permissions
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.settings import api_settings
from .serializers import UserSerializer, AuthTokenSerializer
class CreateUserView(generics.CreateAPIView):
"""Creates a new user in the syst... | [
"sebastbonilla@gmail.com"
] | sebastbonilla@gmail.com |
d3770de2ae95f5979154c27ae9ccd77472d0e4d2 | 0a6f284b1a7c8b16911ebf33076abc38778c752f | /app/run.py | 37911045108a9bf98a86cd405ae50114df2a13ca | [
"Apache-2.0"
] | permissive | branky/blockd3 | 2298b3eafd1b9c50b0374dd1456c0fcdf2068fab | 27e78fd89f44af95ad65b1203c02156db64333d0 | refs/heads/master | 2020-12-25T09:00:35.047437 | 2012-11-19T06:08:49 | 2012-11-19T06:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import logging
from ghost import GhostTestCase, Ghost
from app import make_app
app = make_app("test")
PORT = 5000
base_url = "http://localhost:%s/dist/" % PORT
class Blockd3GhostTest(GhostTestCase):
port = PORT
display = False
log_level = lo... | [
"nick.bollweg@gmail.com"
] | nick.bollweg@gmail.com |
9e73460e1f735eeaa8a782f09d054c7d70dec0fa | d8ddc49fbfbe00bff0631ed05ddcaa9f1a10c3fd | /Data_Collection/test.py | ff9ce6ea3b08302ac987ed783b2f17b59f8129f7 | [] | no_license | reddit-analyzer/data_acq | 48d7bf8f186abc462a8f851b70a83edba2c473f3 | 2c04d42ddb4cbfcfe138508f464c295a22cf6c75 | refs/heads/master | 2016-09-06T11:16:51.036171 | 2015-12-15T22:19:57 | 2015-12-15T22:19:57 | 42,746,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,683 | py | <<<<<<< HEAD
import praw
import time
import csv
import re
=======
__author__ = 'vincentpham'
import praw
import time
>>>>>>> 1d0a2957910f479630465146050acfc2b876e927
#Comments data
r = praw.Reddit(user_agent='blah')
submissions = r.get_subreddit('aww').get_hot(limit=1)
y = [x.comments for x in submissions]
for x i... | [
"vincentpham@gmail.com"
] | vincentpham@gmail.com |
4037da61e9d0b78c4af2e78d472c172f4b190b68 | 436177bf038f9941f67e351796668700ffd1cef2 | /venv/Lib/site-packages/mpl_toolkits/axes_grid1/inset_locator.py | 49576ff9f37100ac6d33812731d5634d57e34693 | [] | no_license | python019/matplotlib_simple | 4359d35f174cd2946d96da4d086026661c3d1f9c | 32e9a8e773f9423153d73811f69822f9567e6de4 | refs/heads/main | 2023-08-22T18:17:38.883274 | 2021-10-07T15:55:50 | 2021-10-07T15:55:50 | 380,471,961 | 29 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,733 | py | """
A collection of functions and objects for creating or placing inset axes.
"""
from matplotlib import _api, docstring
from matplotlib.offsetbox import AnchoredOffsetbox
from matplotlib.patches import Patch, Rectangle
from matplotlib.path import Path
from matplotlib.transforms import Bbox, BboxTransformTo
f... | [
"82611064+python019@users.noreply.github.com"
] | 82611064+python019@users.noreply.github.com |
8577bd44b162241340efce5fcd8fae463442057c | 049c2f8b8979fb7738aecde3fb89234e3554c7fe | /psp class/6.b)Write a program to perform addition of two square matrices.py | 3e2a4c38d9a6bce8f54137bd9879a469913f0700 | [] | no_license | nlakshmi-29/pspclass | 9131fc147a47b77eb22e7bdece154869038ba0c2 | 4cf038a0783f1fe9718669b66b9f4115b7fd3fa6 | refs/heads/main | 2023-07-06T05:11:11.364144 | 2021-08-07T17:52:34 | 2021-08-07T17:52:34 | 392,192,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | X = [[1,2,3],
[4 ,5,6],
[7 ,8,9]]
Y = [[9,8,7],
[6,5,4],
[3,2,1]]
result = [[0,0,0],
[0,0,0],
[0,0,0]]
# iterate through rows
for i in range(len(X)):
# iterate through columns
for j in range(len(X[0])):
result[i][j] = X[i][j] + Y[i][j]
for r in result:
print(r)
| [
"noreply@github.com"
] | nlakshmi-29.noreply@github.com |
72c5a7ef24d9780bf457ee18843bfa0aa5b2843a | 9c1eb98f706fb286e9e6d450c5d80f321bdaa2ca | /authors/apps/articles/tests/test_tags.py | 717f5746a3f87050d43d23139a66266039dfca31 | [
"MIT",
"BSD-3-Clause"
] | permissive | Tittoh/blogAPI | b9d75a36987244e590df5cbc68fbf98c81e54996 | 19f5550f97905ee4a97574cab799d42a0471f12b | refs/heads/develop | 2023-08-04T16:53:34.420960 | 2023-08-03T19:34:16 | 2023-08-03T19:34:16 | 223,628,636 | 1 | 1 | MIT | 2023-09-03T07:41:44 | 2019-11-23T17:37:38 | Python | UTF-8 | Python | false | false | 6,777 | py | import json
from django.urls import reverse
from rest_framework.test import APITestCase
from rest_framework import status
from authors.apps.authentication.models import User
from authors.apps.authentication.tests.utils import TEST_USER
from django.core import mail
from authors.apps.authentication.views import VerifyAcc... | [
"tittohb@gmail.com"
] | tittohb@gmail.com |
0c8356f076217c8333f9d2e64c83f2239d4fb15e | c7b03a2e9b590d343a7719a7ac107199b2fe7b74 | /modules/ravestate_wildtalk/parlai_backend.py | 46e056d30273ae893634accce81c0b4acc172423 | [
"BSD-3-Clause"
] | permissive | Roboy/ravestate | f85039955f477102f34f2c7d384087d9e212509c | e3d08e4401e9f54100b2cd918ef37286099c641b | refs/heads/master | 2022-11-08T11:20:24.621482 | 2022-10-25T08:14:25 | 2022-10-25T08:14:25 | 151,973,578 | 29 | 8 | BSD-3-Clause | 2022-10-25T08:14:27 | 2018-10-07T18:42:46 | Python | UTF-8 | Python | false | false | 407 | py | import re
from typing import Dict
from roboy_parlai import wildtalk
from reggol import get_logger
logger = get_logger(__name__)
fix_spaces = re.compile(r'\s*([?!.,]+(?:\s+[?!.,]+)*)\s*')
class Parlai_Responder:
def process(self, prompt: str, model_options: Dict[str, str]):
result = wildtalk(prompt)
... | [
"toseban@gmail.com"
] | toseban@gmail.com |
acf3d6f042cf28089810655fa79844f3911bf479 | 8701434a837802d6cecaafa660a9a655a362bdfe | /gui/gui.py | 3c08bbf48e1e60a8d36c0981166839acfb70c862 | [
"MIT"
] | permissive | Mathieu-R/tchernobyl-simulation | 668fc0aee1e5abb3015a734e6d837c4027eb8726 | 9861a43b4de75ef9966982b4f458b4e091bf3e92 | refs/heads/master | 2022-12-05T09:08:19.108403 | 2019-12-20T13:24:35 | 2019-12-20T13:24:35 | 224,417,224 | 0 | 0 | MIT | 2022-11-22T04:55:09 | 2019-11-27T11:40:14 | Python | UTF-8 | Python | false | false | 6,928 | py | import numpy as np
import tkinter as tk
from ttkthemes import themed_tk
from tkinter import ttk
from matplotlib.backends.backend_tkagg import NavigationToolbar2Tk
from edo_solver.edo import neutrons_flow_edo
from edo_solver.neutrons_flow import NeutronsFlow
from edo_solver.plot_animation import PlotAnimation
from ut... | [
"mathieu0709@gmail.com"
] | mathieu0709@gmail.com |
c1200cc0a277ef9bc3bcac3a53cd68c6ad6a3a74 | 4ef22fc4ab1e3f943105260c535b04954c389d0e | /app/api/resources.py | ff249e5c7c12177516afd90b6a1cd6064ba83246 | [] | no_license | lapshinmr/vue-flask | d3cd645367c49132cada7b03a37a60bb189c214e | 03c77b0c750f7935d3784b992c9932f28a2f003a | refs/heads/master | 2022-04-12T07:08:15.948151 | 2020-04-09T18:03:10 | 2020-04-09T18:03:10 | 253,712,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | from datetime import datetime
from flask import request
from flask_restplus import Resource
from .security import require_auth
from . import api_rest
class SecureResource(Resource):
""" Calls require_auth decorator on all requests """
method_decorators = [require_auth]
@api_rest.route('/resource/<string:res... | [
"lapshinmr@gmail.com"
] | lapshinmr@gmail.com |
d1145037916ee9d101add906734b65154a1a8a0e | 17fa8d07e31b45c3774508a93d35deba19937326 | /sewRosy/wsgi.py | fef65b3346a15bd0e4ff509746dd05a6ed565694 | [] | no_license | markgrahamdawson/sewRosy | e810772c473060096af64070cfc98cd5d60dae46 | 9034e3382128457f7e126860cf9fb3cd8bceebe1 | refs/heads/master | 2022-05-28T04:42:51.263039 | 2017-12-15T09:42:49 | 2017-12-15T09:42:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for sewRosy project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"markgrahamdawson@gmail.com"
] | markgrahamdawson@gmail.com |
28c05a44ba70abe18d6362f2f5149765c73adee1 | 4a4a24bf9521ef659d16fb08403242a77a9b9d77 | /aos_l10n_id/models/localization.py | 697c48b804e8e16763168c1459d8a44355bd4266 | [] | no_license | hassanfadl/Odoo12-1 | 601c4969c9d483590e8481e92ecaf4dddaac3847 | bb057424138f99d0a645d185fbd26648385fbdf7 | refs/heads/main | 2023-07-31T22:59:19.597624 | 2021-10-01T06:35:58 | 2021-10-01T06:35:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,822 | py | ##############################################################################
#
# Copyright (C) 2011 ADSOFT OpenERP Partner Indonesia
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundatio... | [
"noreply@github.com"
] | hassanfadl.noreply@github.com |
5b052cd8705d0a4fee9dd1e544a4ae6904c4cdd4 | 14448d19d94055266f3d6f08904654110ccf132e | /naveen/settings.py | b53bede9ded527ce45e32056e38d8a93facb2d08 | [] | no_license | vamsisia/naveen | b0c4860dae9560cd774075598009f2294125e8f0 | 2ba9ee2ab5f406f42003ed70fc190be717fd22c4 | refs/heads/main | 2023-05-09T20:17:49.140831 | 2021-06-09T04:18:18 | 2021-06-09T04:18:18 | 375,217,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py | """
Django settings for naveen project.
Generated by 'django-admin startproject' using Django 3.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"vamsi@Vamsis-MacBook-Air.local"
] | vamsi@Vamsis-MacBook-Air.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.