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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4703473ea1c490b4bf7d4e67561b41c1ba8b7f6 | fabbb106c5a2855dc2466550fa41e4ef0262f647 | /tests/test_arraystore.py | c38f8722d5d7599f542be1cc7f5e902de7a6aa87 | [
"Apache-2.0"
] | permissive | RUrlus/carma | 8094f9f468c338369546015c211dd91d44b7e85e | 1a984a44e849fa632315d196dd71f8f29e670534 | refs/heads/stable | 2023-09-01T20:50:35.134191 | 2023-08-22T07:47:40 | 2023-08-22T07:47:40 | 235,867,993 | 80 | 31 | Apache-2.0 | 2023-08-22T06:55:36 | 2020-01-23T19:17:19 | C++ | UTF-8 | Python | false | false | 5,160 | py | """Tests for ArrayStore class."""
import pytest
import numpy as np
import test_carma as carma
def test_ArrayStore_get_view():
"""Tests for ArrayStore class.get_view()."""
sample = np.asarray(np.random.uniform(-1, 1, size=100), order='F')
arraystore = carma.dArrayStore(sample, True)
arr = arraystore.ge... | [
"RUrlus@users.noreply.github.com"
] | RUrlus@users.noreply.github.com |
30b8450ee869f8c36aa9c2ef89e7c2cd52df5a37 | cb8fc28d8ffda6700299075c2952ab0c98579a9b | /cogs/meow_chat.py | 6cf8b476de60912cfb45a6e32d126cc78a29f3df | [] | no_license | Crafter-san/Apple.Py | 855f0f36c798cee74d6aea703e4fd3f0b81d465f | e618fece877197cf3d91ab9eb68705dfcd58e962 | refs/heads/master | 2023-04-07T10:12:48.312298 | 2021-03-12T15:36:05 | 2021-03-12T15:36:05 | 343,938,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,807 | py | import re
import discord
from discord.ext import commands
import voxelbotutils as utils
class MeowChat(utils.Cog):
VALID_KEYWORDS = (
"mew",
"meow",
"nya",
"uwu",
"owo",
"x3",
":3",
";3",
"rawr",
"purr",
"murr",
"nuz... | [
"Kae@voxelfox.co.uk"
] | Kae@voxelfox.co.uk |
1d3cd26709b6bfcfdb5df341574e0135c7dc84bc | 152640a5ee6811922de6a362f72c8a4284a3ae40 | /CipherTools/Cred/__main__.py | 5ec0c29ac63f1c03ba15c19356c0ea959ffa823f | [
"MIT"
] | permissive | samsepiol-e/cipher | 50874f7fc3687f428de9a5e67d20ba7f75e23f81 | b2cf05c90cc5105c2aaf4b7291ae1de2f9cd974a | refs/heads/master | 2023-02-28T10:48:51.706857 | 2021-01-28T06:20:53 | 2021-01-28T06:20:53 | 329,190,365 | 0 | 0 | null | 2021-01-19T09:10:10 | 2021-01-13T04:10:02 | Python | UTF-8 | Python | false | false | 15,075 | py | from CipherLib.encryption import *
from CipherLib.passgen import *
import configparser
import tkinter as tk
from tkinter import ttk
from ttkthemes import ThemedTk, ThemedStyle
import tkinter.filedialog as fd
import os
import pyperclip
import re
import io
class CredGui():
def __init__(self):
self.master = ... | [
"0.alicegawa@gmail.com"
] | 0.alicegawa@gmail.com |
af54114818f226f1e71a187fff93ad14de3ecaa2 | a1335fdfd7f967ca9df8e2c72780ff617addb9f8 | /python_thread.py | c453df499172ac7b3019525422c7c0a7f0064a84 | [] | no_license | umtkrl1993/BasicPythonCodes | 91618447997d0001ec7a664b6a81fb2e36e0f3b9 | f9eca7d748af599de8e6da89918def298f9961bf | refs/heads/master | 2020-07-17T11:53:21.666213 | 2018-11-06T14:35:25 | 2018-11-06T14:35:25 | 94,318,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | #!/usr/bin/python
import threading
import socket
import json
name_ip_map = {"berke":"192.168.1.108", "umit":"192.168.1.105" }
class ClientHandlerThread( threading.Thread ):
def __init__( self, conn, addr ):
threading.Thread.__init__( self )
self.conn = conn
self.addr = addr
self.dummy_logger = None
de... | [
"noreply@github.com"
] | umtkrl1993.noreply@github.com |
eda5336026e3192e31dafdb64dfb2cadae53cd8c | b8b70fec347cb90581999dcbb1c4e0a6aeb6f4b6 | /Lotto/game_of_lottery_updated.py | 7bca60c0edc71deeb2f4f43bbfe15dd417ddb5b3 | [] | no_license | quirkyabhi/WIP | 23e3e5901a1b6c35ee80327ae291373e460de717 | a80dc4620b6ac20f17017bf9c8c9068f8bcb26af | refs/heads/master | 2021-05-19T04:48:19.742125 | 2020-03-31T13:31:56 | 2020-03-31T13:31:56 | 251,535,097 | 1 | 0 | null | 2020-03-31T07:50:06 | 2020-03-31T07:50:06 | null | UTF-8 | Python | false | false | 2,537 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import random
# import import_ipynb
import lottery_tickets_updated as lottery_tickets
def main():
# all the tickets created in lottery_ticket
tickets=lottery_tickets.main()
# names of each tickets
Ticket_names = ['Ticket1', 'Ticket2', 'Ticket3', 'Tic... | [
"noreply@github.com"
] | quirkyabhi.noreply@github.com |
1694e6abd73228e1e0c3de0f0ef44927d5728da8 | 328cc491d622267b2fddb613637b8a5f47fcb2f6 | /niku/module/trading/models/trading.py | a0083355776b771c429b007158ce8b3215b6a164 | [] | no_license | webclinic017/histdata | 7ca3c3d891d80c80f23662266cfebe8d7f0a942b | 40e4d4a54865563d53b539a47fc5ce940c3cc9e1 | refs/heads/master | 2021-12-04T22:31:13.014440 | 2015-05-19T09:48:44 | 2015-05-19T09:48:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,731 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import random
class TradingManager(object):
POSITION_LIMIT = 10
def __init__(self):
from apps.parse.views import read_csv
self.csv_data = read_csv()
self.current_rate = None # 現在の最新... | [
"gumikun@000196-M.local"
] | gumikun@000196-M.local |
0129e5f8bb4ef9510bef37bfe7c32a58b45a1089 | 6ec8e4271968cae715babe05029931d2c11df754 | /run.py | 3381b4ca954744143adb1172231fafc792c96a42 | [
"MIT"
] | permissive | lllhhhqqq/SPIRAL-tensorflow | 040efe8af0fd3bc4d5f5ce2ed5474e6d732763f5 | 05ddfdc20c73a61cde46594bd6b7b7a2e255a44b | refs/heads/master | 2020-03-08T08:57:45.938448 | 2018-04-03T15:32:19 | 2018-04-03T15:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,371 | py | # -*- coding: future_fstrings -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
import tensorflow as tf
from six.moves import shlex_quote
import utils as ut
def new_cmd(session, name, cmd, load_path, shell):
if isinstance(cmd, (... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
03e17f9b968c0638c48a848cb9483eabc9e07906 | 61311217cf5841d02ca8056d8146b51ab9aab8bf | /AStar.py | 6dd4e07e48a5e0a6e96f0a72a289b6353b091246 | [] | no_license | danksalot/AStarPython | 691002b5ae67b04e4b0c3ee438b611819dabf708 | edddba6d48f043a111938b3a0cbded51d0f52bb1 | refs/heads/master | 2021-01-11T16:39:54.077051 | 2017-01-30T22:23:49 | 2017-01-30T22:23:49 | 80,133,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | import random
import sys
import os
import math
class Node:
def __init__(self, x, y):
self.x = x
self.y = y
x = 0
y = 0
fScore = 0
gScore = sys.maxint
passable = True
fromNode = None
def findNeighbors(self):
neighbors = []
if self.y > 0 and grid[self.x][self.y - 1].passable == True:
neighbors.append(... | [
"noreply@github.com"
] | danksalot.noreply@github.com |
007d16e66c60f2d00ace8968f69849d8bdf1e9a8 | 7ed7a2f34b5726e0f99095bebf1804ad84ba9c10 | /backend/qaemdecor/decorbusiness/views.py | 4ef62812b1d13db91dbed495bef3aa7a42373ff5 | [] | no_license | mahmoodDehghan/qaemdecor | 3d9aea1c3f448a599e6e3782254e04df867d62df | 567c1e5d97cc3ec0904d1a8fb25450e9d6870c23 | refs/heads/main | 2023-07-27T16:40:51.937314 | 2021-09-10T09:00:42 | 2021-09-10T09:00:42 | 404,981,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | from django.shortcuts import render
from rest_framework import viewsets
from .models import DecorCategory, MainCategory, DecorSample
from .models import Customer
from .models import OrderCategory, Order
from .serializers import DecorCategorySerializer
from .serializers import MainCategorySerializer
from .serializers im... | [
"m.mahmooddm@gmail.com"
] | m.mahmooddm@gmail.com |
3d2048c9ebf6fa1a734b247850fc97400c7c5e54 | 20a6e0291ed4d235879eaafc3daa6b109dc867e0 | /214A_SystemOfEquations.py | 6687740bd4512108274fc886bf31e53fd69ed53a | [] | no_license | Nisarg6892/CodeForces-Codes | fab41a9e548e9531e2b275117189ec4e5b8db837 | a08efc8532575508f626359a0a60d3168f4b088e | refs/heads/master | 2021-01-10T15:06:41.501564 | 2016-01-07T07:51:49 | 2016-01-07T07:51:49 | 49,189,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | import math
string_int = map(int,raw_input().split())
n = string_int[0]
m = string_int[1]
c = max(n,m)
SquareRoot = int(math.sqrt(c))
satisfy = 0
for a in range(0, SquareRoot+1):
for b in range(0, SquareRoot+1):
if a**2 + b == n and a + b**2 == m :
# print a,b
satisfy += 1
print satisfy
| [
"shah.nisarg6892@gmail.com"
] | shah.nisarg6892@gmail.com |
efa421e1a76afe0964e948df99b54226c8ffe9f6 | 3d63a9af2f1ea9104fb6ee6dcd9dea47534e8d70 | /app/__init__.py | 5ef198607d7297faf146605489474e14dc1e3343 | [] | no_license | Eddychase/PitPitch | eb1491a50aefff40dda53780d461a953c2729561 | 8989d953a70f33cab9392a0fbbbaff90671f56d2 | refs/heads/master | 2023-01-31T15:12:51.779157 | 2020-12-07T18:11:21 | 2020-12-07T18:11:21 | 319,123,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | from flask import Flask
from config import config_options
from flask_mail import Mail
from flask_login import LoginManager
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from flask_uploads import IMAGES, UploadSet,configure_uploads
db = SQLAlchemy()
mail = Mail()
bootstap = Bo... | [
"eddykanyz.ek@gmail.com"
] | eddykanyz.ek@gmail.com |
edc72ccfeef18d398c5ad5c13d2f70e6945f8af5 | a287edfd5e2b7789f75e6f0c32a9725978d9b12a | /examples/03_smoothingonsurface_rhino/03b_smoothingonsurface_rhino.py | 9567907691183a01658ba2c567eb3e6a0ffee04e | [] | no_license | whiskyching/WS_digitalfutures | 7a40825b4ea06b6a4aea8c216cb08467befb78ce | 9bf1af1955cf9847c7c9ef2226a58fba2601ce9d | refs/heads/master | 2022-02-26T16:59:04.969565 | 2019-10-03T10:05:04 | 2019-10-03T10:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from compas.datastructures import Mesh
from compas.geometry import smooth_area
import compas_rhino
from compas_rhino.helpers import mesh_from_guid
from compas_rhino.conduits import LinesConduit
from compas_r... | [
"brg@arch.ethz.ch"
] | brg@arch.ethz.ch |
6b4a2259a9521f7bac941dbd7c5d804a80f437c4 | 2bf7fdade3ac15135aaa6516fd409a3ddb95a573 | /seqparse/files.py | b4bd2f79418a40e05e6b8c7245fe6fe3edd17a62 | [
"MIT"
] | permissive | hoafaloaf/seqparse | d90a8aed98bd2f4cb32e5ffd4f757a8f03363bc4 | 78551b65e0d04b2abe4fce4e7ce78d308c3654e8 | refs/heads/master | 2022-10-20T08:25:58.523104 | 2022-09-14T04:20:55 | 2022-09-14T04:20:55 | 84,528,131 | 1 | 1 | MIT | 2022-09-14T04:21:55 | 2017-03-10T06:41:24 | Python | UTF-8 | Python | false | false | 3,956 | py | """Singleton file-related data structures utilized by the Seqparse module."""
from functools import total_ordering
import os
__all__ = ("File",)
###############################################################################
# Class: File
@total_ordering
class File:
"""
Simple representation of files on di... | [
"hoafaloaf@gmail.com"
] | hoafaloaf@gmail.com |
7c602f029e3a124f40432e96b024c8300417ae5b | f4b5721c6b3f5623e306d0aa9a95ec53461c1f89 | /backend/src/gloader/xml/dom/html/HTMLTableRowElement.py | e18280ba18ad8af52f593f29fbe8bf83d5cc6ac0 | [
"Apache-1.1",
"MIT"
] | permissive | citelab/gini5 | b53e306eb5dabf98e9a7ded3802cf2c646f32914 | d095076113c1e84c33f52ef46a3df1f8bc8ffa43 | refs/heads/uml-rename | 2022-12-10T15:58:49.578271 | 2021-12-09T23:58:01 | 2021-12-09T23:58:01 | 134,980,773 | 12 | 11 | MIT | 2022-12-08T05:20:58 | 2018-05-26T17:16:50 | Python | UTF-8 | Python | false | false | 3,711 | py | ########################################################################
#
# File Name: HTMLTableRowElement.py
#
#
"""
WWW: http://4suite.com/4DOM e-mail: support@4suite.com
Copyright (c) 2000 Fourthought Inc, USA. All Rights Reserved.
See http://4suite.com/COPYRIGHT for license and copyright in... | [
"maheswar@MacBook-Pro.local"
] | maheswar@MacBook-Pro.local |
e165539b779cc69789fdf2f72ed06839e6bf732e | 0dfbb481a56dbf4ae044859c308c87bb4a871ed6 | /backend/__init__.py | d02809d47158ebf6a7f2764755cd9185890d627b | [
"MIT"
] | permissive | Darthone/atto | e818fe2d5634f63673caf67140f70436ba567597 | 4d9093b45e82ed5e561878de6064ec7a1d57da05 | refs/heads/master | 2021-01-10T18:01:53.955447 | 2015-12-07T16:00:56 | 2015-12-07T16:00:56 | 47,152,667 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from flask_peewee.rest import RestAPI
from app import app # our project's Flask app
# instantiate our api wrapper
api = RestAPI(app)
# register our models so they are exposed via /api/<model>/
api.register(User)
api.register(Relationship)
api.register(Message)
# configure the urls
api.setup()
| [
"dm661@live.com"
] | dm661@live.com |
ff1c4d029dd283c6abac27def1e344d19da67be6 | c3a814de299cb7fe7e0f194ea0b434285e4d8c89 | /untitled0.py | dd7e0ab644983a0ea1c57095ac69b8adac6a81ff | [] | no_license | Gailpig/computationalphysics_N2013301020123 | 2559e975f29b42b37a2597d4201ffd1ea9302015 | db87cb53180a3572cedcf0645cd70b069fd6d4cd | refs/heads/master | 2021-01-21T04:32:38.350525 | 2016-06-21T13:19:52 | 2016-06-21T13:19:52 | 52,862,134 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 13 20:22:00 2016
@author: dell1
"""
print' ## ### ### ######'
print' ## ## ## ## ## ##'
print' ## ## ## ## ## ##'
print' ## #... | [
"noreply@github.com"
] | Gailpig.noreply@github.com |
c6b17689089d32247142bc099851f137f9c1284f | e65435847a5f421cb127253214c0b4a1ca4af489 | /chapter_2/5_1.py | 6dc43386dd99784cdaf68cec5982f02c7ba225dd | [] | no_license | jobiaj/Think_python | 1ef68a81d92b31c962a4ff543a520a29683d10c0 | cbeba0c6576a6b5092accc8717fb749cb2c1bc27 | refs/heads/master | 2020-06-03T11:35:07.948680 | 2014-09-29T09:05:00 | 2014-09-29T09:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | def first_line():
print "+","-","-","-","-","+","-","-","-","-","+"
def second_line():
print "/", " " * 7, "/" , " " * 7 ,"/"
first_line() , first_line()
second_line() , second_line()
second_line() , second_line()
second_line() , second_line()
second_line() , second_line()
first_line() , first_line()
second_l... | [
"jobyalungal@gmail.com"
] | jobyalungal@gmail.com |
82cd114c38d8767bd5493b1054b0112eb2f33b82 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02772/s117684727.py | af179f388db806b32c0635d0c096c78b0d0171ea | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | N = int(input())
A = list(map(int, input().split()))
even_numbers = [a for a in A if a % 2 == 0]
is_approved = all([even_num % 3 == 0 or even_num % 5 == 0 for even_num in even_numbers])
if is_approved:
print('APPROVED')
else:
print('DENIED')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b195749bd3eeada2ec74e5e6b6e576aeb3b40e75 | 4cdfab83d22271e3db4522a179cdd1926f26c5fa | /__openerp__.py | b2e72004bc5b2b6a9cc582abbe37ba134648d8d0 | [] | no_license | cgsoftware/View-Ciciriello | 6aa628e547a1c7b93780a66c282b7259debbed36 | 8180d70398f5b3e8d010fdc89c2cb9f4ab609092 | refs/heads/master | 2020-05-18T00:42:12.687876 | 2011-11-06T10:12:40 | 2011-11-06T10:12:40 | 2,372,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"4everamd@gmail.com"
] | 4everamd@gmail.com |
749e567b11e7775cb000dbb9272ed2c75b74dd54 | 306fa1a76fc5caf86ca4faa42fff08de4e3875d4 | /queens.py | 42164e915ed23898591225a82e32c814bcc7a5ee | [] | no_license | sivaneshl/pyhton-tutorials | 2148d0e3eac9098ea37098e231caadab1f3b1f1b | 5bb25f544c3ae1c09721f7dd8da7ad9f4381bb34 | refs/heads/master | 2021-09-04T04:02:56.972691 | 2018-01-15T16:34:43 | 2018-01-15T16:34:43 | 79,484,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | #!/usr/bin/env python3
"""
N queens problem.
The (well-known) problem is due to Niklaus Wirth.
This solution is inspired by Dijkstra (Structured Programming). It is
a classic recursive backtracking approach.
"""
N = 8 # Default; command line overrides
class Queens:
def __init__(self, n=N):
... | [
"noreply@github.com"
] | sivaneshl.noreply@github.com |
8eeaf7e25b89c82e2173abd9454af9198b6e9be1 | 79461a46a9ddc3952ddfcecd54383eb4dd8ba957 | /code/Old/syntaxic.py | c209b38dcc36e7944cd5d73aacf9ac136c34d1bb | [] | no_license | HuylenbroeckFlorent/BA3_Compilation_Projet | 068473752525061355e51069caded79ae2476f69 | 3c526316e7f2d3ea5b2e95927cb4c86ba921d774 | refs/heads/master | 2020-04-25T21:29:41.242429 | 2019-05-06T21:59:57 | 2019-05-06T21:59:57 | 173,081,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | import ply.lex as lex
import ply.yacc as yacc
from lexical import tokens
operations = {
'+' : lambda x, y : x+y,
'-' : lambda x, y : x-y,
'*' : lambda x, y : x*y,
'/' : lambda x, y : x/y,
'>' : lambda x, y : x>y,
'<' : lambda x, y : x<y,
'=' : lambda x, y : x==y,... | [
"alfatta_@hotmail.com"
] | alfatta_@hotmail.com |
401cb8855aa3803f300b8f36d911255bb8d75d12 | 2d89afd5ca29fc2735a00b0440ea7d5408c8e398 | /Crash Course/chap08/making_pizzas.py | af1cccef50058c8fd85c9b35c58b99c668176743 | [] | no_license | TrystanDames/Python | 6b2c8721606e046d9ff0708569a97d7b78a0f88e | 68b3f5f160b46fa4e876d58808ff78ac7f2d84df | refs/heads/main | 2023-06-03T14:25:51.638345 | 2021-06-23T08:54:18 | 2021-06-23T08:54:18 | 357,112,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | #import pizza
from pizza import make_pizza as mp
#this will allow us to just use make_pizza'
mp(16, 'pepperoni')
mp(12, 'mushrooms', 'green peppers', 'extra cheese') | [
"trystandames08@gmail.com"
] | trystandames08@gmail.com |
8aa533705c3bfa46061d55ff545f89b8b3795379 | 632f496713b33e60605ad5e76bf68720df5609fd | /test_env/iot_toolkit/device_informer.py | 5a5ad5d40b7298149644e4c64468504591a569d8 | [] | no_license | johnny-cy/MQTT_KAFKA_DOCKER_MYSQL_DJANGO_ELK | 01e00f706a9de2f172c521e16423b67dc65e07f5 | 41545d19ca7bc74d833d225469546c8b67275973 | refs/heads/master | 2022-08-20T19:35:28.489747 | 2020-05-28T14:29:29 | 2020-05-28T14:29:29 | 267,560,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Get devices information.
This application try to get devices information using RESTful API::
https://iot.epa.gov.tw/iot/v1/device
"""
import time
from main import main_func
from coordinator import Coordinator
from etl_functions import ETLMixin
class DeviceInf... | [
"johnny-cy.lin@outlook.com"
] | johnny-cy.lin@outlook.com |
1e377736dc3ac326fedd2f872744593f1f7c31c5 | 95410dd4b8a12e2551448c013fb2f3efa6b6f6c1 | /Challenge.py | 8bf400afa46fc34e20f7c550f3e9a85289edcfaa | [] | no_license | bitbyt3r/magfest-challenges | f7f60759b7e71af31b52cc999bb5a9f430639f81 | d6455aea867104cdc910d325f7ec5285c29f54e3 | refs/heads/master | 2021-01-13T02:19:15.589039 | 2015-04-16T12:43:24 | 2015-04-16T12:43:24 | 28,695,467 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | class Challenge:
def __init__(self, config):
self.__dict__.update(config)
self.image_path = "./images/"+self.system+"/"+self.imageFile
self.rom_path = "./roms/"+self.system+"/"+self.romFile
self.save_path = "./saves/"+self.system+"/"+self.saveFile
self.description = self.description.split("NEWLINE... | [
"mark25@umbc.edu"
] | mark25@umbc.edu |
88c547a8ef64b27b0186eb32424d09cd931b7714 | 20c0dbde3c2fdb2345171ecd869f56b4ddcb4a11 | /zlibrary/main.py | b62edb38dd9f5fd715d788a1322c024c368526a1 | [] | no_license | danielggc/python | a981d9be8d8591d796a9508fd813b3a2e94d7c26 | f8ef5218e2a577a1535e8c57287dfffe6e98294c | refs/heads/master | 2023-01-13T11:09:53.483352 | 2020-11-18T21:17:28 | 2020-11-18T21:17:28 | 314,055,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,701 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.common.utils import keys_to_typing
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.w... | [
"danielgrecia7@gmail.com"
] | danielgrecia7@gmail.com |
4abd216b71e494c4d3722125e10ab928624f62d1 | f2581c0caaf711fd7e864ad346bf7f09337b5919 | /d8night/urls.py | 12f7e605a1c9890e451b2a1a5c1c04426b9377d6 | [] | no_license | Cristian-Baeza/d8nite-backend | 43fbac284f04bdacf40fa9d8b2821dcc889acff3 | c64167f42700f05cdcea7c3ad67cfd71e81cd824 | refs/heads/main | 2023-04-12T13:16:57.551799 | 2021-05-14T20:58:15 | 2021-05-14T20:58:15 | 367,477,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | from django.urls import path
from .views import current_user, UserList, ActivityViewSet, DateViewSet, ProfileViewSet, breweries_list, yelp_api_zip, google_maps_api_zip, google_places_api_zip_keyword, weather_api_zip
from rest_framework.routers import DefaultRouter
urlpatterns = [
path('current_user/', current_user... | [
"cristianbaeza092@gmail.com"
] | cristianbaeza092@gmail.com |
fc3486add471fbe41421c34ec345863d7b438a4a | 7edce8acdb6017502a17be74f8e232ba810313f5 | /KeithleyInstruments.py | e90a1e0f40963291297a6eed5a029ea62bab0382 | [] | no_license | SherwinGroup/HarvardCode | 1fe4997d3c5b533d039d97650d8303584bf4c626 | 2f20b284d0f38673fd7ad767b94485122d4e3e7d | refs/heads/master | 2021-01-19T22:32:52.146842 | 2015-05-09T20:28:15 | 2015-05-09T20:28:15 | 35,344,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,894 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 02 09:03:41 2014
@author: dvalovcin
"""
import visa
import numpy as np
import pyqtgraph as pg
class Keithley236:
on = False
def __init__(self,GPIB_Number=None):
rm = visa.ResourceManager()
self.instrument = rm.get_instrument(GPIB_Number)
... | [
"valovcin@physics.ucsb.edu"
] | valovcin@physics.ucsb.edu |
da8dc774c7f411cc5bce474e831ecbc71c8452b6 | b5db781f2f20df948c69ce782ea56174ed38fa8f | /ex7.10.py | 11579d5904d889e90b02269220d7e69ea71cd522 | [] | no_license | MuhammadZahid9596/Python-Crash-course | ecd805598892850d3c4fe2f6aa9fd4013ba8601e | 39e574d90a57667185ddf50e76622e2084a0131b | refs/heads/master | 2021-05-11T01:14:57.751567 | 2018-03-07T19:53:05 | 2018-03-07T19:53:05 | 118,322,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | poll_results={}
while True:
name = input('what is your name?')
place = input('where do you wanna go?')
stopper=input('would you like some one else to responf?')
poll_results[name]=place
if stopper !='yes':
break
for name,place in poll_results.items():
print(name.title()+' would ... | [
"noreply@github.com"
] | MuhammadZahid9596.noreply@github.com |
eceb66f9d207eea28d2851aa72477b974c8783d5 | 485f832364ef339edc426117d0bcff9c02b61df7 | /FEM_1D.py | 9a62832ca683f670eb948c1d35efb2fe0154034f | [] | no_license | philiplukek/FEM | 99b2ce4f0c980aa0cf69ad3a82eb1c5115c032d7 | edbdeb7512ced213269971f05ad0c1ae1d497945 | refs/heads/main | 2023-05-25T02:49:02.525414 | 2021-06-10T13:13:51 | 2021-06-10T13:13:51 | 375,695,320 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,096 | py |
"""
Python Code to Solve 1-D Elastic Bar using FEM
Developed by Philip Luke K, as part of MIN-552 Coursework submission at IIT-Roorkee, October 2020
THIS IS A GENERALIZED FEM CODE TO SOLVE A 1-D LINEAR-ELASTIC BAR SUBJECTED TO AXIAL LOADS. Key Features of the code include :
1. Discretization into any number of ele... | [
"philip_luke@ce.iitr.ac.in"
] | philip_luke@ce.iitr.ac.in |
b1ddcbd53d4265b9f3450c6c7734505502f2bc17 | b196fc08f2c832a9f4df26e9f2bff249cab9ebb8 | /run_firewall.py | 2abf4c1b2ddd19361ddfe50e3d53fd53e7a68af6 | [] | no_license | kbuci/FirewallAssignment | e638233d0212b17e02b385ea5425bf6f4f37cc2f | 52ce3ff60ed742f691ef61db6296969c74a2b445 | refs/heads/master | 2020-09-04T22:20:25.748073 | 2019-11-06T04:10:01 | 2019-11-06T04:10:01 | 219,907,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | from firewall import Firewall
if __name__ == "__main__":
fw = Firewall("prompt_input.csv")
assert(fw.accept_packet("inbound", "tcp", 80, "192.168.1.2")) # matches first rule
assert(fw.accept_packet("inbound", "udp", 53, "192.168.2.1")) # matches third rule
assert(fw.accept_packet("outbound", "tcp", 102... | [
"noreply@github.com"
] | kbuci.noreply@github.com |
c4144409f9e09516442d5488de13c377c98fbd9c | b2fe343d6ec73b627b763d984df7fa3b97a8886d | /grabber/views.py | f43acad4cdb3e949c79642ee15f46787cfdaa4df | [] | no_license | zlyxero/phone-grabber | 721275b379291efd99db0affae740dc20817f153 | 3f4e013ecb218da7759822b3ba2e8048ced76c40 | refs/heads/master | 2021-09-11T15:52:29.744435 | 2018-04-09T15:30:08 | 2018-04-09T15:30:08 | 125,367,433 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,245 | py | from django.shortcuts import render, redirect
from .forms import FTP_Login_Form
from django.views import View
from .models import ConnectionData
import os
from ftplib import FTP, error_perm
from .mixin import log_in_to_ftp
# Create your views here.
class FTP_Login(View):
def get(self, request):
""" display ftp ... | [
"mitchyjeffy@gmail.com"
] | mitchyjeffy@gmail.com |
bbb5a22ab6340f09c9d9c0b587b7b62647b7d439 | 9bbd3831f7160788f79293980a530f3bf30ac919 | /news/migrations/0002_auto_20200519_1109.py | b516f8df9979144aa2bc0d65135517d662bc9082 | [] | no_license | martingathu/moringa-tribune | 88c426a6e8c32515f5bf2923c222601f2f2c1584 | 866b6a8ef68131196d50e18814824ddba059b861 | refs/heads/master | 2023-08-04T05:05:56.388538 | 2020-05-21T07:13:49 | 2020-05-21T07:13:49 | 265,782,760 | 0 | 0 | null | 2021-09-22T19:03:11 | 2020-05-21T07:23:37 | Python | UTF-8 | Python | false | false | 623 | py | # Generated by Django 3.0.6 on 2020-05-19 08:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='tags',
fields=[
('id', models... | [
"martin5gathu@gmail.com"
] | martin5gathu@gmail.com |
26a00630aeba6a6ae67c356e67ad7108f664c08b | 2aec9c5e8c72b731d3abf22f2a407fe09c1cde09 | /ZQZ510/ZQZ510/pipelines.py | 96d17ebedbe541b8ea71011896e82ef784f24a35 | [] | no_license | jiangyg/ZWFproject | 8b24cc34970ae0a9c2a2b0039dc527c83a5862b5 | aa35bc59566d92721f23d2dd00b0febd268ac2dd | refs/heads/master | 2020-09-26T17:01:00.229380 | 2019-11-15T13:16:21 | 2019-11-15T13:16:21 | 226,297,631 | 0 | 1 | null | 2019-12-06T09:55:37 | 2019-12-06T09:55:36 | null | UTF-8 | Python | false | false | 542 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
class Zqz510Pipeline(object):
def open_spider(self, spider):
self.file = open('./zqz_data.json', 'w+... | [
"34021500@qq.com"
] | 34021500@qq.com |
69945bc96e07be5b35d5a63568feef62af072449 | 1d000c111cc5b910b002ba65d1dd0043bf1091a6 | /commerce/migrations/0006_auto_20151130_1636.py | b3532a0988b06864613efc5f674669e2a02d2a58 | [] | no_license | oreon/gencomm | 0f0957457f280eb8dc79cf6568d6d8aee0d8f02c | 6f85ad975ad95a2b4eb83390bbc86202e3b0dede | refs/heads/master | 2023-04-14T12:24:49.979930 | 2016-05-09T18:54:56 | 2016-05-09T18:54:56 | 47,437,502 | 1 | 0 | null | 2023-09-03T20:12:37 | 2015-12-05T01:39:24 | Python | UTF-8 | Python | false | false | 779 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('commerce', '0005_auto_20151028_1120'),
]
operations = [
migrations.RemoveField(
model_name='employee',
... | [
"jagdeep.singh@mobilelive.com"
] | jagdeep.singh@mobilelive.com |
b337c4c75669d3e9abc434f3274411c1037886a1 | ad06d319d1dd651b8a802848913f4cdfc40085f0 | /specific_keras_functionality/001_antirectifier.py | 1d8a531d682d5c12bda41621b41c34572694db79 | [
"MIT"
] | permissive | Daniel1586/Initiative_Keras_tutorials | 132c0cfdfd892adaf087a79a6ed6572275f05531 | 7129ed42f4f148da7f97d5ab164de07cae4814b6 | refs/heads/master | 2020-03-18T06:47:32.676685 | 2018-06-18T13:37:57 | 2018-06-18T13:37:57 | 134,415,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 如何在keras中编写自定义层
"""
The example demonstrates how to write custom layers for Keras. We build a custom activation
layer called 'Antirectifier', which modifies the shape of the tensor that passes through it.
We need to specify two methods: `compute_output_shape` and `call`.
Not... | [
"33886608+Daniel1586@users.noreply.github.com"
] | 33886608+Daniel1586@users.noreply.github.com |
560d28d47aec3beddae995957b47f2a586147262 | 153995fa868b4697d8d6b25379a16f9756604151 | /student/migrations/0003_auto_20180530_1427.py | 23c1d56c1bf88a956e612254eb17747ba36e63f8 | [] | no_license | Manju1313/django-school | 816c13259654c4f57352add903cc13e3915f3724 | 1182de09e9b638a2a4f328024f6bc6807eff6029 | refs/heads/master | 2023-03-21T22:44:59.002131 | 2020-08-15T14:34:19 | 2020-08-15T14:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | # Generated by Django 2.0.4 on 2018-05-30 18:27
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0002_auto_20180530_1421'),
]
operations = [
migrations.RemoveField(
model_name='student... | [
"dihfahsihm@gmail.com"
] | dihfahsihm@gmail.com |
11ac4ad394b8e5dc3d3286dcc1047702be415edf | d1cf52f3b9743930a45d6533f9eeca4603360268 | /apps/players/tests/factories.py | 1db31453f99d38a1fa9e68bca32e510ae9a7075b | [] | no_license | adamkberard/Django-DayOfDie | 3992a763d1147f4921eb7592c5f3a45b045ce325 | 3b71440bf3db1cb609b778a47272410c00541828 | refs/heads/development | 2023-07-31T04:17:28.775785 | 2021-09-30T21:43:35 | 2021-09-30T21:43:35 | 343,927,519 | 0 | 0 | null | 2021-09-30T21:43:36 | 2021-03-02T22:13:42 | Python | UTF-8 | Python | false | false | 537 | py | import factory
from apps.players.models import Player
# Common variable
DEFAULT_PASSWORD = 'pass4user'
class PlayerFactory(factory.django.DjangoModelFactory):
class Meta:
model = Player
email = factory.Sequence(lambda n: '%d@example.com' % n)
password = DEFAULT_PASSWORD
@classmethod
d... | [
"adamkberard@gmail.com"
] | adamkberard@gmail.com |
ab0a9a101fe7c2a2f1ddd2a2c84c5c685e9c4320 | ca5936d1417a90cc6bf702e11dd395e9487721fd | /azure_client.py | 62515c974fa86ee6396c4980cab358b09bf4a7fa | [] | no_license | JMFrmg/lecture_recettes | a826a3de4846b2a076a92f2c8ce4f517044d8fa2 | cff6b0cf124def68cb54dbe6d414170d87639be7 | refs/heads/master | 2023-03-01T01:27:39.496464 | 2021-02-01T13:26:06 | 2021-02-01T13:26:06 | 334,927,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | from azure.cognitiveservices.vision.contentmoderator import ContentModeratorClient
from azure.ai.formrecognizer import FormRecognizerClient
from azure.cognitiveservices.vision.computervision import ComputerVisionClient
from azure.ai.textanalytics import TextAnalyticsClient
from azure.core.credentials import AzureKeyCre... | [
"matthieu.colombert@gmail.com"
] | matthieu.colombert@gmail.com |
8cbb0199476d4a0ff738d2012c7bde1daee5d0e7 | 496e05014492b4bbecf9f15c40ae416c21e27a46 | /src/outpost/django/api/serializers.py | f3b19c6cac6763725dbcfae9ac299911d7d02ba2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | medunigraz/outpost_deprecated | b1ff802054c04cf989b3b660e132fa6a1c2a078c | bc88eaa3bb504d394fdf13f1131e40db27759c89 | refs/heads/master | 2022-01-23T15:46:34.859095 | 2019-05-21T08:38:11 | 2019-05-21T08:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,266 | py | import re
from base64 import (
b64decode,
urlsafe_b64encode,
)
from pathlib import PurePosixPath
from uuid import uuid4
import six
from django.core.files.base import ContentFile
from drf_haystack.serializers import HaystackSerializer
from rest_framework.serializers import (
FileField,
IntegerField,
... | [
"michael@fladi.at"
] | michael@fladi.at |
a32498a9fb63bef9a6dc7a709925c7c54c530ba9 | 9680200efd5a5f971f91084ef07e20ac76f6aab7 | /tests/unit/rankings/score_tests.py | 19c0e9fd1856ca5f5829a9b0101a9d387edd4e6e | [] | no_license | jnclt/ranking_service | 651b1747fc20ccc5a0f3d5151482b1cba8bba3b2 | 2506fe6b44611d5959a2b2ba971cb1071d8e08e1 | refs/heads/master | 2023-08-29T14:30:28.345917 | 2013-11-23T11:31:44 | 2013-11-23T11:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from django.test import TestCase
from django.db.models import fields
from rankings.models import Score
class ScoreModelTest(TestCase):
def test_should_contain_decimal_value_field(self):
value_field = Score._meta.get_field(name='value', many_to_many=False)
self.assertIsInstance(value_field, field... | [
"jan.calta@gmail.com"
] | jan.calta@gmail.com |
de26f435d64fb5960218212130a82f90ba3b15ee | 99afa8ce4d34998374edccd4ebc04375f87e1149 | /Week_5/Day5/Daily_Challenge/daily_challenge2.py | e7986c92c1f10473105ce376f2d87ac562c2b26b | [] | no_license | Yona-Dav/DI_Bootcamp | 34077f51d50941b0f7d20db8d4e7cfc2a4e16f6f | c72ea034dcd70414b886ec2051eb1d7a1baf7eaa | refs/heads/main | 2023-09-05T15:43:35.225028 | 2021-11-18T17:43:08 | 2021-11-18T17:43:08 | 413,339,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | # Part 1 : Quizz :
# Answer the following questions
# What is a class?A class is a code template for creating objects. Objects have member variables and have behaviour associated with them.
# What is an instance? An object is created using the constructor of the class. This object will then be called the instance of ... | [
"yona.bohbot@gmail.com"
] | yona.bohbot@gmail.com |
ee0b2466bc1cafcdb84c99ac4db6ddf33589c3c3 | 6b8d1dcf18f688192eebb95e3bd922250b352429 | /deploy/ieee-workflow/ieee.py | de994f14b4bae9ba741274745e9cb08a1e2a4976 | [
"MIT"
] | permissive | bigdatalab/movingdata | 571542226395e5a10b127d7588f17b40bfc06d75 | 9e51a54b9c601fa8fd55a571d28beb66fcca9def | refs/heads/master | 2016-09-10T18:19:43.976792 | 2013-05-22T13:14:07 | 2013-05-22T13:14:07 | 10,197,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | #!/usr/bin/env python
#
# Runs the IEEE example workflow
#
# Copyright (c) 2013 by Michael Luckeneder
#
import sys
import os
import time
start_time = time.time()
files = []
i = 0
# download images from wikimedia several times
while True:
if i >= int(sys.argv[1]):
break
else:
i += 1
file ... | [
"michael@luckeneder.net"
] | michael@luckeneder.net |
2e50c12dd8851b04187c57f3da365c997cbde47d | 2e2d4861fe0a3c0bd824fd140f8c57fd1e05ddac | /workflows/deploy.py | d6395aaa7759fdf8e9cf27eee0712a757a5ff06c | [] | no_license | mss7082/nornir_backup | 5df4009339dea852a0047c4c415f400314afcbe9 | f71b34ec28523ff7e15b0d78a8f6e6c1f6e373a8 | refs/heads/master | 2022-06-19T11:50:06.338198 | 2020-05-06T20:17:26 | 2020-05-06T20:17:26 | 261,788,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | #!/home/gns3/virtualenvs/nornir/bin/python
from nornir import InitNornir
from pprint import pprint
from nornir.plugins.tasks import networking, text
from nornir.plugins.functions.text import print_result
from nornir.core.filter import F
import logging
def main():
template = "interfaces.j2"
nr = InitNornir(... | [
"mssokabi@pop-os.localdomain"
] | mssokabi@pop-os.localdomain |
2935ac6309fc6ef4ec2f6ebea6c24fb96c80ca16 | 1c9909744b978ef47ab3ef1a89fe5c16691c551f | /DS_Algo/Searching/peakIndexInMountainArray.py | 3d16775963e2e47221c451521f0bfb9f9c86f401 | [] | no_license | barleen-kaur/LeetCode-Challenges | 238036b8eba4867f0d2686b3a3fe70e43f3de20f | bdd53a0314d833728b3c248241ae5b8fa6051819 | refs/heads/master | 2023-02-20T05:23:12.427779 | 2021-01-22T00:45:10 | 2021-01-22T00:45:10 | 296,755,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | '''
852. Peak Index in a Mountain Array: Easy
Q. Let's call an array arr a mountain if the following properties hold:
arr.length >= 3
There exists some i with 0 < i < arr.length - 1 such that:
arr[0] < arr[1] < ... arr[i-1] < arr[i]
arr[i] > arr[i+1] > ... > arr[arr.length - 1]
Given an integer array arr that is guara... | [
"barleenk@gmail.com"
] | barleenk@gmail.com |
af963ee0e327eb1953c47441839a1f283f993d96 | 0c4c49d31937eff94fc34f1e7c2f371abbb07c64 | /custom_components/colorfulclouds/const.py | 902f823a722881bf83aa5d36fafde7f8e0d7f7f3 | [] | no_license | liuleidp/Colorfulclouds-weather | 0697af89815c4982c208597ea22188040accb4d6 | d3beaed0d6015d45810530e1c32e9f1fae45f8cf | refs/heads/master | 2022-12-25T02:53:41.212108 | 2020-09-17T11:23:11 | 2020-09-17T11:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py |
"""Constants for colorfulclouds."""
DOMAIN = "colorfulclouds"
PLATFORMS = ["sensor"]
REQUIRED_FILES = [
"const.py",
"manifest.json",
"weather.py",
"config_flow.py",
"services.yaml",
"translations/en.json",
]
VERSION = "0.1.3"
ISSUE_URL = "https://github.com/fineemb/Colorfulclouds-weather/issu... | [
"embont@gmail.com"
] | embont@gmail.com |
3cb9f0d148c54cbbe893c3e1c798c3bb23c70ffc | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/compute/instances/delete_access_config.py | 479bf531ec0ef199dca5ae411f4dd8aff59f1cff | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 3,102 | py | # Copyright 2014 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 required by applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
71cd954f33c227545742d4faaa6f87496d9255cd | a900588a0f166022e3b4dac8329f9df16393afd4 | /pipeline_stages_config.py | 75c09399068b3b81502be479885e04a3900343d6 | [] | no_license | khalidm/rubratargetedpipeline | 82efe3857ea89965a15d74bed116eeedd0be674e | 90b4efe4cbb1068fa817b50de9a87a4fc3fa85e9 | refs/heads/master | 2016-09-06T05:26:02.394054 | 2014-09-10T06:40:00 | 2014-09-10T06:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,720 | py |
# stageDefaults contains the default options which are applied to each stage (command).
# This section is required for every Rubra pipeline.
# These can be overridden by options defined for individual stages, below.
# Stage options which Rubra will recognise are:
# - distributed: a boolean determining whether the tas... | [
"mahmood.khalid@gmail.com"
] | mahmood.khalid@gmail.com |
a57e29a5245b7fc7cac8aac2d84443f7c42a14d0 | 9213de0545a68734d490b0be00c429ee0dce1698 | /Tatto/settings.py | 7f85a6a7b3b9740ebe3d4a68c378be74b48995ca | [] | no_license | kabindrarijal/tattoo | e75f8c7fc3d2335041d217038933ae9f86f8f4eb | bc49896432282430895dee6ca53ef4d16a3db080 | refs/heads/master | 2020-06-27T03:20:05.449634 | 2019-07-31T10:26:21 | 2019-07-31T10:26:21 | 199,830,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | """
Django settings for Tatto project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# B... | [
"kabindra@outlook.com"
] | kabindra@outlook.com |
921688e4e0fbdd1792cd348353ae939ebe9564b0 | b4ad8d023bcd8d061d873dbab20c892c9cb887b8 | /prac_08/unreliable_car.py | bbc71ce84459c1ede6dad695ab2552ab58448f8e | [] | no_license | jordanMellish/cp1404Practicals | 9de529a61b43e6031c3bfdff1c752d4a437c8ccb | 5140db323d13a5564e92864b91904b8fe9464f90 | refs/heads/master | 2020-03-24T22:42:06.646462 | 2018-10-24T03:46:45 | 2018-10-24T03:46:45 | 143,098,469 | 0 | 0 | null | 2018-09-04T05:04:49 | 2018-08-01T03:20:42 | Python | UTF-8 | Python | false | false | 744 | py | """
CP1404/CP5632 Practical
UnreliableCar class, derived from Car
"""
from random import randint
from prac_08.car import Car
class UnreliableCar(Car):
"""An unreliable version of a car."""
def __init__(self, name, fuel, reliability):
"""Initialise an UnreliableCar."""
super().__init__(name, ... | [
"jordan.mellish@my.jcu.edu.au"
] | jordan.mellish@my.jcu.edu.au |
2f52dc55e8244d2992f25fe087aa779b5ee88b23 | edfa045d12b8efb65de20261ff80a86160298e44 | /contact/views.py | 92ba8640b73aadf1add6ef04d0e028b1dae69786 | [
"MIT"
] | permissive | yusif763/Unistore-pro | 1d559a89bb71f3db8b5d1e89df64ed7113f00f2a | 41ad0fa209c79a201d3f6a7aa68ec0ace707dcad | refs/heads/main | 2023-04-24T02:50:30.085011 | 2021-04-29T11:00:11 | 2021-04-29T11:00:11 | 362,782,688 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | from django.shortcuts import render,redirect
from contact.models import *
from contact.forms import ContactForm
from django.views.generic import (
ListView, DetailView,CreateView
)
from django.views.generic.edit import FormMixin
from django.http import HttpResponseRedirect
from django.urls import reverse_lazy
# ... | [
"you@example.com"
] | you@example.com |
e95f90e3add4a44c83da5cb198549a1b5aca2680 | ad6216b583f72942c24865cdaee51da23e6c3a7c | /solutions/problem0014.py | 1cec790b930ff845d0f759f6ba4dc19e93f0f00f | [] | no_license | vshender/daily-coding-problem | 325a68af96a5240cbbada7c6f615e5c91083a7dd | b13ccf67d670f0e9efd558506fcb5333ce2d8686 | refs/heads/master | 2020-05-01T12:05:43.654024 | 2019-05-18T13:26:37 | 2019-05-18T13:26:37 | 177,458,467 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | """Problem #14 [Medium]
This problem was asked by Google.
The area of a circle is defined as `pi * r^2`. Estimate `pi` to 3 decimal
places using a Monte Carlo method.
Hint: The basic equation of a circle is `x^2 + y^2 = r^2`.
"""
from random import random
def estimate_pi(eps: float) -> float:
"""Estimate `pi`... | [
"vadim@shender.org"
] | vadim@shender.org |
c92ec169ce3f9c52a1a324c79db7b02e29ce371a | c1e2dfac83ca2fab928127e7ab3b898623f943ab | /source/added_value/toposort.py | 269f08cfed840a0c15bcade02c506777a71eec11 | [
"BSD-3-Clause"
] | permissive | sixty-north/added-value | 1cd7845ff63a97f6282f4ed8ebc0e6b9158be779 | debd9e8dcf1475ecc7d2836a6fecdfd95a2de8ec | refs/heads/master | 2023-04-28T11:16:59.244319 | 2023-04-14T19:37:35 | 2023-04-14T19:37:35 | 132,577,509 | 0 | 1 | BSD-3-Clause | 2023-04-14T19:37:36 | 2018-05-08T08:21:33 | Python | UTF-8 | Python | false | false | 854 | py | from collections import defaultdict, namedtuple
Results = namedtuple("Results", ["sorted", "cyclic"])
def topological_sort(dependency_pairs):
"Sort values subject to dependency constraints"
num_heads = defaultdict(int) # num arrows pointing in
tails = defaultdict(list) # list of arrows going out
he... | [
"rob@sixty-north.com"
] | rob@sixty-north.com |
9192f7c15ed59359d976a92fd0945a47e3af7c97 | 2582841c7a99804298d8c99dea1a533c3064d604 | /pc.py | c3b034fce5d3a1b34deeb8d9fab3dcda03adab3c | [
"WTFPL"
] | permissive | dgottlieb/storyteller | e2655a2d8c231138cad0d8f09fd83739862d002f | 0cf430b1372a5aed95d08ebe1aff268314f362e1 | refs/heads/master | 2016-09-10T13:29:29.255787 | 2012-03-05T03:54:24 | 2012-03-05T03:54:24 | 2,816,254 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | import random
import inform
class Party(object):
def __init__(self, hero):
self.members = [hero]
self.items = []
self.gold = 50
self.status_box = inform.PartyStatus(self, right=True)
self.gold_box = inform.GoldStatus(self)
def __len__(self):
return len(self.me... | [
"danny.gottlieb@gmail.com"
] | danny.gottlieb@gmail.com |
0d4345f4f7d1fb1740337a32881c2c8a4533f342 | 4e25bbb3244f253f3296542931f3e8babf0af5c9 | /main/migrations/0001_initial.py | fc757a8e23b0bf530886004f9cdc798c3be20404 | [] | no_license | dalovaelena/IoTApp | 8ed373f0239937284429c69daae899097c36aab2 | 38d6e6e9df63a3553d7a0b48d924917cfe67a7c7 | refs/heads/master | 2020-09-13T16:15:20.945794 | 2019-11-20T03:15:28 | 2019-11-20T03:15:28 | 222,838,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Generated by Django 2.1.5 on 2019-11-19 07:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Tutorial',
fields=[
('id', models.AutoField... | [
"noreply@github.com"
] | dalovaelena.noreply@github.com |
51076cbc05dfd34c93e5ff0d33ec683f7304252f | 6cc795fef13e82a2e50f487740f5373b5a3f8549 | /pyunlocbox/tests/__init__.py | 7cae2d147d6d4ccbb8129886a11191b019a147e2 | [
"BSD-3-Clause"
] | permissive | epfl-lts2/pyunlocbox | 7a14e97f7e46981ed6748bb5073d473f45af676e | ec84282096fa9154d8bdcc52bacc3531c9720779 | refs/heads/master | 2023-08-29T22:13:29.345251 | 2022-10-18T11:18:53 | 2022-10-18T11:18:53 | 17,248,167 | 98 | 28 | BSD-3-Clause | 2023-08-18T02:01:44 | 2014-02-27T12:33:31 | Python | UTF-8 | Python | false | false | 445 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test suite for the pyunlocbox package, broken by modules.
"""
import unittest
from . import test_functions
from . import test_operators
from . import test_solvers
from . import test_acceleration
from . import test_docstrings
suite = unittest.TestSuite([
test_f... | [
"michael.defferrard@epfl.ch"
] | michael.defferrard@epfl.ch |
aa725acaf7e91703ebe920800ab4e826acdd933e | 04322cdd13907b7664cbc85f73885ebfd2a8c8ec | /20210126/urls-secondapp.py | ab71dbbed458f0a27e776220c8db94793b859ff9 | [] | no_license | kim-jae-eun/TIL | e8fdfca93a4f30ccedbf02fa8dac2db739eba213 | 28bbe990bb237367f6af6e54f04b5e204c0f6bdc | refs/heads/master | 2023-04-29T11:49:09.819181 | 2021-05-11T14:44:24 | 2021-05-11T14:44:24 | 325,237,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.exam1, name='exam1'),
path('exam2/', views.exam2, name='exam2'),
] | [
"kj6659@naver.com"
] | kj6659@naver.com |
86d183306acb70d51d2f66c4434f6faebdeca298 | 7df714c172e36948580d4b352e5454fdc5cbf81a | /restapi/serializers.py | a9f9a49706197ef2ab9b37c0a3b2ce59bcc5583a | [] | no_license | textworld/messageboard | db6b4ffcbf86dc3cfbf3adca9eb1adc85bc57751 | 9663b556d6704c5d6db36934153fe85d50fb02e1 | refs/heads/master | 2020-12-07T08:34:35.910452 | 2020-01-09T00:11:15 | 2020-01-09T00:11:15 | 232,684,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from restapi.models import Message
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ['url', 'username', 'email', 'groups']
class GroupSerializer(serializers.Hyp... | [
"text.zwb@gmail.com"
] | text.zwb@gmail.com |
365cde7deab764e8c3579e15bed629c7e8dc4758 | 3fb976eadaba6a3ad10ef7a91bf0d47604c65339 | /test_with_classifier.py | aaac33811c76234e199ac61ecad88f9bfd47af27 | [] | no_license | diogojapinto/cats-vs-dogs | 72265afec4b5cf5c50505ad3c7b87c35bdd8d9ac | 16190549b85e4f6f7fd070a01c8a443b37625895 | refs/heads/master | 2021-01-15T11:42:39.846587 | 2015-12-24T01:10:50 | 2015-12-24T01:10:50 | 47,896,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | import cv2
from matplotlib import pyplot as plt
import sklearn
import numpy as np
import pickle as pk
from os import listdir
plt.style.use('ggplot')
NR_WORDS = 1000
from os import listdir
def load_images(imgs_paths, gray=False):
for path in imgs_paths:
img = cv2.imread(path)
if gray:
... | [
"ruigrandaorocha@gmail.com"
] | ruigrandaorocha@gmail.com |
fdc7efa41a770c56baef8913b87e1dd6def66e0a | 70ee9f1be6126f1bac8511513e7291002d354840 | /src/Products/CMFCore/tests/__init__.py | 67af542c0356d32e40ceb38b08484462eb3b1ce8 | [
"ZPL-2.1"
] | permissive | zopefoundation/Products.CMFCore | 3d375d4bb682eabd64554c88166e50bdecb4483c | 8c32b5ec521536c1a2c3752426f6ed209b11190c | refs/heads/master | 2023-09-03T15:30:57.432178 | 2023-07-03T10:07:08 | 2023-07-03T10:07:08 | 36,093,975 | 4 | 19 | NOASSERTION | 2023-09-08T15:43:18 | 2015-05-22T20:33:14 | Python | UTF-8 | Python | false | false | 171 | py | """\
Unit test package for CMFCore.
As test suites are added, they should be added to the
mega-test-suite in Products.CMFCore.tests.test_all.py
"""
_globals = globals()
| [
"y.2015@wcm-solutions.de"
] | y.2015@wcm-solutions.de |
842a2c46f56a7757144550a71d0db5dc6c5c3357 | 08284d6d808408bdd43cd8115daa6b9d522c1510 | /arm-py/disassemble.py | b95c7e8d9abcc86761a10ecc8539d5a207e5fd4d | [] | no_license | securelayer7/arm-py32 | da65b40d81813a4c34180f12b3092535a050d808 | e328668fd7e3fed4e51421ea9cafcbf854d70574 | refs/heads/master | 2020-06-09T19:05:25.739145 | 2019-06-24T11:26:43 | 2019-06-24T11:26:43 | 193,489,789 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # disassemble.py
# displays disassembly of the entire .text section
import sys
from elftools.elf.elffile import ELFFile
from capstone import *
def disassemble(bin_file):
with open(bin_file, 'rb') as f:
elf = ELFFile(f)
code = elf.get_section_by_name('.text')
ops = code.data() ... | [
"icyph0x@pm.me"
] | icyph0x@pm.me |
14b393e7ba2c8a870e184b37ae52e2d773a05b30 | 35459fb41290c85046d575389d27c42194d90e51 | /Django REST Framework/Nothing/Nothing/settings.py | 53792b615eee500ba3b819f7512d4128d1216da1 | [] | no_license | ghost1412/FrameworkLearning | 5f34e18f34b1f75382fe6b71073e0c61d7ec63a7 | c0dbb2693a9949fe8b0c7866157bcf8e4dd1ecf4 | refs/heads/master | 2022-12-11T23:04:53.316293 | 2020-09-10T11:33:42 | 2020-09-10T11:33:42 | 294,390,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | """
Django settings for Nothing project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | [
"jatav.ashutosh@gmail.com"
] | jatav.ashutosh@gmail.com |
91b19ebfcfc2d019937e967020366dcb0bf65cdb | bf815da9cc16326bd397c939bf4e5a7ce0d3261e | /Computer_Science_Career_Path/CS102/4.Queues/3.enqueue.py | 530f8ae210ceafd4157794314f7a1fdb2163cb15 | [] | no_license | StingzLD/Codecademy | 2e6979afe49cfba1c0fc1038dc1a50f0649f5924 | a1a6f175758f6cd561cabd5bf050e219c1432930 | refs/heads/master | 2022-12-15T08:38:50.316955 | 2021-08-02T00:10:11 | 2021-08-02T00:10:11 | 172,606,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | from node import Node
class Queue:
def __init__(self, max_size=None):
self.head = None
self.tail = None
self.max_size = max_size
self.size = 0
# Add your enqueue method below:
def enqueue(self, value):
if self.has_space:
item_to_add = Node(value)
... | [
"stingzlightingdesign@hotmail.com"
] | stingzlightingdesign@hotmail.com |
0a03b67eecb862ea28ff48d194cf4e78eb1133a0 | f95102d82dff690a4a0d0a68a7bcac9eea283bab | /brooks_answers.py | a4049af35d86ab470429e70118df6de59c170e2b | [] | no_license | almathaler/sudoku_solver | 98228e0738baf9ef61eb2a01878d18d7cf64f992 | 78d184e10be87325c4bec4a07ea73a565bb7a79d | refs/heads/master | 2021-04-09T22:12:47.636066 | 2021-02-10T01:36:16 | 2021-02-10T01:36:16 | 248,885,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,369 | py | #! /usr/bin/python3
import sys
Cliques=[[0,1,2,3,4,5,6,7,8],[9,10,11,12,13,14,15,16,17],[18,19,20,21,22,23,24,25,26],[27,28,29,30,31,32,33,34,35],[36,37,38,39,40,41,42,43,44],[45,46,47,48,49,50,51,52,53],[54,55,56,57,58,59,60,61,62],[63,64,65,66,67,68,69,70,71],[72,73,74,75,76,77,78,79,80],[0,9,18,27,36,45,54,63,72],... | [
"athaler00@stuy.edu"
] | athaler00@stuy.edu |
0b981c34caacbd6a75a6f68469358cb35d62e42f | 7330c32b71012e0c5fe75c95eb342cfb2b441d1b | /Test_Suite/T730_Portrait_2x2_vmware.py | bcd6c85b3bbe2a8595c264aa71cd6294e5cfdd1c | [] | no_license | nettlay/Linux_scripts_automation | a2f407649c3b0d0c9d9e4220a9c97f370d0be0e7 | e480af6b93c1a0bb54865e6d896772552386d736 | refs/heads/master | 2023-06-05T19:32:15.189998 | 2021-06-28T08:08:49 | 2021-06-28T08:08:49 | 272,672,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from Test_Script.ts_multiple_display import display_function, generate_xml_file
def run():
resolution_data = generate_xml_file.DisplaySetting('Portrait 2x2', {'DisplayPort-1': ['3840x2160', 60],
'DisplayPort-2': ['3840x2160', 60],
... | [
"noreply@github.com"
] | nettlay.noreply@github.com |
671710238052c0289b8de317b9124f750a1ce3de | 3f25e518ab86d7d3ba736d608c2b9ac7713b0ada | /filter_plugins/filters.py | 950c19f49fcb7a10c89c48c8dc4043b8a3ee8e03 | [] | no_license | PavelChekhov/ansible_task | d57294480278f2a33e8a9011f79c8fd53c53d8f8 | d3886a91aebe03974a6d7894afb750f2e9a8978e | refs/heads/master | 2022-11-05T18:33:58.119856 | 2020-06-21T08:59:35 | 2020-06-21T08:59:35 | 273,868,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from functools import partial
import types
from ansible import errors
def get_mongo_src(arg, os_name, os_version, mongo_version):
import re
os_name = os_name.lower()
if os_name == "centos":
os_name = "rhel"
... | [
"Pavel_Chekhov@epam.com"
] | Pavel_Chekhov@epam.com |
535149511500657d6551b886a29959a2dde8c03c | bd3382151e75c370ede1c2e14c72d31d3b1dbb6a | /venv/bin/easy_install-3.7 | f809f42383a86e63c68f2598a070f394485e8d52 | [] | no_license | mcmanyika/stats | 267a7e561f1fdf53f9ff751e95f53436cd02cb1c | e3834377d327391bddb2e7e0e6d61abd9b6ce0a8 | refs/heads/master | 2022-04-21T10:43:48.854861 | 2020-04-19T17:51:44 | 2020-04-19T17:51:44 | 257,054,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | 7 | #!/Users/kdmedilink/Documents/stats/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kdmedilink@Dispatchs-iMac.lan"
] | kdmedilink@Dispatchs-iMac.lan |
196aee3a236d95dd81093d250f46928df29e953c | f205b2a0f71fb6ef8931bd9498efe03b86afa028 | /v4/code_4_2.py | c897bbaf4ea878f331653110b01584770d07e0ee | [] | no_license | sigurbirnah19/Birna | 11402deac1f4c59f55a65760e709b5f46315cfab | 810a50912f631a8e80b34a21811c9cc46a75b107 | refs/heads/master | 2022-12-08T23:57:31.260669 | 2020-09-03T23:43:00 | 2020-09-03T23:43:00 | 292,614,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | highest = int(input("Input an int: "))
for i in range(1,highest+1):
if(i%3==0):
print(i)
| [
"birna.haflidadottir@sabre.com"
] | birna.haflidadottir@sabre.com |
9317d49e4e0740b572e4aebdbdbb59a7e97dd3bb | daa47bc7d93e49cc6142f61cd380b2ee7be3c183 | /2019/Day9.py | 930474cf74c36dd75ff5c35ac498adabfd5b0fda | [] | no_license | jimpyts/AdventOfCode | 85746f2412a50ae9c40e2374cb7fdfd25bae152f | 4909bb875009b362e3b86eb3f7376f387648f59c | refs/heads/master | 2021-01-02T20:54:44.201125 | 2020-02-11T15:35:23 | 2020-02-11T15:35:23 | 239,796,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,718 | py | import jimpy
import collections
import itertools
import types
class IntcodeError(Exception):
pass
class IntcodeComputer:
opcode_parameter_lengths = {
1: 3,
2: 3,
3: 1,
4: 1,
5: 2,
6: 2,
7: 3,
8: 3,
9: 1,
}
... | [
"noreply@github.com"
] | jimpyts.noreply@github.com |
fd8dc6815a414f523f8bd3cc9b1f0c9d9322d917 | 1871ab24904127053c9d6c5ffd9b776a61b7495b | /Day004/day4.2_who_pay_the_bill.py | 50409e09acbd17af9e4282c144172b9be2f4806a | [] | no_license | izark99/100DaysPython | d857adb08e0186802c766fe6a8bddceb56feed09 | cf0b885c2d03e0dbf80a1c825d325e025fe30fe4 | refs/heads/master | 2023-03-04T02:41:02.119120 | 2021-02-16T06:02:05 | 2021-02-16T06:02:05 | 336,467,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import random
test_seed = int(input("Create a seed number: "))
random.seed(test_seed)
str_names = str(input("Give me everybody's names: "))
names = str_names.replace(' ', '').split(',')
random_choice = random.randint(0, len(names)-1)
print(f"{names[random_choice]} will pay the bill!") | [
"izarknguyen@gmail.com"
] | izarknguyen@gmail.com |
333052f3ec73a5eda4c8f049f35e3302fdbf1361 | 0c412883b09037cef2dc03399b5cde27c353c4fb | /classifier.py | 1b86ed9ce1da85c54bc0bd75fc62675c03cb07a0 | [] | no_license | ggoh29/newsClassifier | 729b3179640030504df8ff1ba354799fc2300e61 | 835fbc6b89c1fb8016acd14a22366062c0004b0f | refs/heads/main | 2023-02-22T09:57:44.596888 | 2021-01-24T14:56:06 | 2021-01-24T14:56:06 | 332,407,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,813 | py | import pandas as pd
import nltk.tokenize as nt
import nltk
nltk.download('averaged_perceptron_tagger')
import re
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.metrics import classification_report
import numpy as np
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
anal... | [
"noreply@github.com"
] | ggoh29.noreply@github.com |
5b9df18e21c3984939e05f0ff63a859a74d1fad9 | 8ea836381024468714b6fe11d4984f2ad44a3e88 | /polls/migrations/0001_initial.py | c399f70ad21fb0ca2c6820063f8c1203b338c44c | [] | no_license | Shubham7567/mysite | 67139f8d088a12d21988a75fc3f46495e0615c5c | 52e5380d5750ecb6336042a9acbce27c629f72a5 | refs/heads/main | 2023-02-15T11:05:59.020519 | 2021-01-01T03:02:25 | 2021-01-01T03:02:25 | 325,908,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # Generated by Django 3.1.4 on 2020-12-25 04:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"shubhamrathore7567@gmail.com"
] | shubhamrathore7567@gmail.com |
8065d5a222ea47f64ef74359900886af9e88af37 | fa9c5bb26c72b053a41f34e858d7395ee29aea5d | /HttpTesting/main.py | ed8bc130a9da20ac6da12479814e772dab2e1447 | [
"Apache-2.0"
] | permissive | HttpTesting/HttpTesting | 3c01d7b00b13ddf5d52ac223693a5222d9a52a03 | b5b68dd546cb7aea02931c46fe4e51a98f71566e | refs/heads/master | 2021-06-20T15:34:35.583811 | 2019-12-25T05:58:34 | 2019-12-25T05:58:34 | 195,352,254 | 1 | 0 | Apache-2.0 | 2021-03-25T22:50:17 | 2019-07-05T06:33:48 | Python | UTF-8 | Python | false | false | 9,090 | py | # ########################################################
# 将根目录加入sys.path中,解决命令行找不到包的问题
import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.insert(0, rootPath)
# ########################################################
import unittest
import shutil
... | [
"lengyaohui.bj@acewill.cn"
] | lengyaohui.bj@acewill.cn |
1c8e3344ff726702de26bc95b86ffad4f8fa87df | cce5684e1bb9fea2df762c1afedb17b1795b7a5f | /pymcutil/selector/selectors/self_selector.py | 03d75db75e9fd916c4c55f012ac4e9ca91173109 | [
"MIT"
] | permissive | Arcensoth/pymcutil | 85071e5c3bbd25a47a1133bfa464f67126c62bdd | 0c8f1efa4d611e92170ec48bedb160b1d00d0022 | refs/heads/master | 2020-03-18T05:02:06.769457 | 2018-07-02T00:45:51 | 2018-07-02T00:45:51 | 91,645,414 | 3 | 1 | null | 2017-07-12T15:56:12 | 2017-05-18T03:37:33 | Python | UTF-8 | Python | false | false | 322 | py | from pymcutil.selector.abc.selector import Selector
from pymcutil.symbols import selector_bases
from pymcutil.symbols.selector_bases.selector_bases import SelectorBase
class SelfSelector(Selector):
@property
def base(self) -> SelectorBase:
return selector_bases.self
self = SelfSelector
SELF = self(... | [
"arcensoth@gmail.com"
] | arcensoth@gmail.com |
2f36eb11ae86a36399030211222692df4e389349 | 74963da08191530d6675620c2e143abd49921abe | /src/02-parse-airquality-data.py | 999851749b4a013bb27fdec78cd1eb494f65975e | [] | no_license | rossanx/iot-arinter-2021 | 53c55c687b1afd9c3acfe2e7675a0b4a9b1ca053 | 8ae4a7f51e48eb1686b1db57f4957c61c5456e9e | refs/heads/master | 2023-06-27T06:43:56.491843 | 2021-07-23T16:25:21 | 2021-07-23T16:25:21 | 386,047,879 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 2,135 | py | #!/usr/bin/python
# -*- coding: latin-1 -*-
# Author: rossano at gmail dot com
# Timestamp: Sun Jul 11 05:38:36 PM -03 2021
import json
# JSON content
airquality='{"status":"ok","data":{"aqi":24,"idx":329,"attributions":[{"url":"http://www.cetesb.sp.gov.br/","name":"CETESB - Companhia Ambiental do Estado de São Paulo... | [
"rossano@gmail.com"
] | rossano@gmail.com |
b2fe5f745db4637bddd1e35aeee3c5df22b39957 | 9e7ac60fffd6addbde5e5f0695b93a45f095b354 | /fissbuzz.py | 47f249ed16cf1938eb7d94ae0274dd56d5914703 | [] | no_license | Aquino094/TP | f37df0585f1282f1df0258eb53d0d9ca163023ee | 75ef1e67aba3353104af5978fef26c659f383ba4 | refs/heads/master | 2021-01-17T14:28:43.407048 | 2016-06-08T22:19:17 | 2016-06-08T22:19:17 | 59,785,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | #Programa que imprime fizz si el numero es multiplo de 3,
#buzz si es multiplo de 5 y si es multiplo de ambos imprime fizzbuzz numero
#crear un contador
count = 0
#usamos estructura while que permitira la
#ejecucion mientras se cumpla la condicion
while (count < 101):
#realizar una sentencia que compare s... | [
"julian.aquino086@gmail.com"
] | julian.aquino086@gmail.com |
0d404e2cf2f71b94dc6778d3d2add5d0b4a8985f | 61d728164e2ab131403f1637ac6c23b126d43e70 | /confusionModel.py | b1b85f7617a7c09d62b4a540ac941bc38098295a | [] | no_license | alexliyang/HandGesture-Detection | b7321929f9191475e8de05b3cb2d284617a0d1da | 6db93da6ac7a78c44699846f4a55978a7a5e548f | refs/heads/master | 2021-05-03T17:24:10.988781 | 2018-01-17T18:09:51 | 2018-01-17T18:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,891 | py | import tensorflow as tf
import glob
import cv2
import random
import numpy as np
import os
import ctypes
from time import time
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix
import itertools
class VideoCamera(object):
def __init__(self, index=0):
self.video = cv2.VideoCapture(i... | [
"andreas.pastor@etu.univ-nantes.fr"
] | andreas.pastor@etu.univ-nantes.fr |
556cd12c5bcabb294fdef6cef5e233d27d08634b | b5ce6908490cfb8e6a1e1cbe4745d675122ddce0 | /questions/search-insert-position/Solution.py | c0090acd08a2b839bf40909c0f07c328192ae1f5 | [
"MIT"
] | permissive | franklingu/leetcode-solutions | 8895910f13208e1d8e604100d84c2dd35684cde4 | 7ad7e5c1c040510b7b7bd225ed4297054464dbc6 | refs/heads/master | 2023-01-09T01:34:08.097518 | 2023-01-02T02:05:35 | 2023-01-02T02:05:35 | 43,345,677 | 155 | 66 | MIT | 2020-10-02T03:41:36 | 2015-09-29T04:54:38 | Python | UTF-8 | Python | false | false | 523 | py | '''
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array.
Example 1:
Input: [1,3,5,6], 5
Output: 2
Example 2:
Input: [1,3,5,6], 2
Output: 1
Example 3:
Input: [1,3,5,6], 7
... | [
"franklingujunchao@gmail.com"
] | franklingujunchao@gmail.com |
73a23e510d0db12d3463c18a0f24bc61535d211a | 9d1b1d52f99b86bec0e74878c0535057115dc667 | /pes/views.py | 2c1c8ed73da304fb4070741309f11b3496348234 | [] | no_license | antocuni/pesranking | 1f9b2bb8f03ba15f5f5d36ff6e70e0de8edc5002 | 574ecf8b5e49979adf709239a4df78de83acd039 | refs/heads/master | 2022-11-22T03:21:40.837305 | 2011-12-01T19:31:03 | 2011-12-01T19:31:03 | 275,815,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from django.http import HttpResponseRedirect
from pes import models
def updateranking(request):
models.Match.updateranking()
return HttpResponseRedirect(request.META['HTTP_REFERER'])
| [
"anto.cuni@gmail.com"
] | anto.cuni@gmail.com |
8ab5c8d3e3417cf68662e2bb6eed4603cbabc34b | a79e8e99099e355ba7f6d87309fbf13e70f74c57 | /weixinqunBackend/wxqInfo/apps.py | dfced5e365cf8bd48cb79074595384988b2c4a06 | [] | no_license | fat39/weixinqunDeom | cad14bcf64c7a4da6293776ccf999fb82007af9e | 118c8208dd950c5e94c607dd84b09c3255023642 | refs/heads/master | 2020-04-26T09:45:15.092717 | 2019-03-02T15:48:27 | 2019-03-02T15:48:27 | 173,466,712 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class WxqinfoConfig(AppConfig):
name = 'wxqInfo'
| [
"fat39@163.com"
] | fat39@163.com |
7d1d5d7dd799f554f4859903533709fce16dcc43 | 491e8ee92e1126eebe58c75b31e7280239524a09 | /distillation/scripts/extract_distilbert.py | e5f6e2936843158a62b66b1fc4ffac77fc9808d1 | [] | no_license | sdonoso/glues_for_alberts_and_distilbeto | 0e7815699fdd1cc949dbdfa74244391af71e6c94 | 5cca38bda64ac9e12a003bb9048226957bc74b38 | refs/heads/master | 2023-08-10T16:08:00.397625 | 2021-09-27T18:04:48 | 2021-09-27T18:04:48 | 401,483,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,315 | py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# 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 a... | [
"sdonoso@solotodo.com"
] | sdonoso@solotodo.com |
16fd87cc3e1a96176a7f22aa42ff1cfeeb7e0269 | 46ef40c8d12267bb399151b6004491be3dd0c3a6 | /api/routes.py | d9eb050f38177b5d2365be0eda94df8a1090a765 | [] | no_license | biggeorge9900/potato | d602f03b15049963a7f8daf7af01eddee873e15b | 2141f918e97a431cbc2debe3e6184f31ed0bc4c7 | refs/heads/master | 2016-09-15T20:20:47.637361 | 2014-06-02T02:48:42 | 2014-06-09T06:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from api.box_api import authentication, finish_authentication
routes = [
(r'/api/login_test', 'api.login_test.MyHandler'),
(r'/api/get_box_', 'api.login_test.MyHandler'),
(r'/api/box/authentication', authentication),
(r'/api/box/finish_authentication', finish_authentication),
]
| [
"tao.9900@gmail.com"
] | tao.9900@gmail.com |
2e348161c86c67245725ee7b207542d60aa277df | aef3789bf667efc60d4f02cfd2fb4c629e307715 | /studyone/migrations/0004_snippet.py | 49734c004d32e174bddb023a4982e89820743026 | [] | no_license | lvorcool/Blog | c2d0ee6104e8f8850fb58a25060d8d165c66b96c | dced5b9b83c7a1c808e9689515894dad050ce4f8 | refs/heads/master | 2021-08-14T10:00:46.221466 | 2017-11-15T09:40:46 | 2017-11-15T09:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,164 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-11-01 15:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('studyone', '0003_auto_20171101_1334'),
]
operations = [
migrations.CreateMo... | [
"2545567546@qq.com"
] | 2545567546@qq.com |
84b921ebd67dca82253a50ee13baf4d2cb8fdb97 | 6646f6b92e9ff31f2f74b749ea12ace53cfc135c | /tests/unit/models/test_package_model.py | 5d883c6352b89b74851372eb02d55c084db4b862 | [] | no_license | EricMontague/SponsorMatch | 0a6685edb44b2694824d3d3a4d15dfcb42fdb68e | 864aa3cfe25d74c2b97b9f09f45eb9fa10dac892 | refs/heads/master | 2022-12-08T22:43:21.684165 | 2021-03-19T00:50:06 | 2021-03-19T00:50:06 | 241,396,411 | 0 | 0 | null | 2022-12-08T03:38:23 | 2020-02-18T15:27:42 | Python | UTF-8 | Python | false | false | 2,398 | py | """This module contains tests for the package model."""
import unittest
from tests.integration.testing_data import TestModelFactory
from app import create_app
from app.extensions import db
class PackageModelTestCase(unittest.TestCase):
"""Class to test the Package Model."""
def setUp(self):
"""Crea... | [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
258c50f0a0095b90cf44f648a147bb9f908366f6 | dc3a6a8fc1f250c91e2ce48236a5c57e65e1b800 | /Graphs_I/03_csGraphAdjacencyListRepresentation (Task 3 of 5)/01_csGraphAdjacencyListRepresentation.py | a7eb433cf2a37f587ad39079886430508ff7f0d5 | [
"MIT"
] | permissive | sarahmarie1976/CSPT15_BST_GP | dc477d68bad0be1255dcc09136c3aaebde1440fc | 8f478ebf8b620d4982eecc26c70ce8725fd45624 | refs/heads/main | 2023-03-04T12:37:05.981399 | 2021-02-19T22:20:37 | 2021-02-19T22:20:37 | 317,756,459 | 1 | 0 | MIT | 2021-02-19T22:20:38 | 2020-12-02T05:10:03 | Python | UTF-8 | Python | false | false | 1,682 | py | """
check image for question
A - class Graph:
def __init__(self):
self.vertices = {
"A": {"B": 1},
"B": {"C": 3, "D": 2, "E": 1},
"C": {"E": 4},
"D": {"E": 2},
"E": {"F": 3},
"F": {},
"G... | [
"sholle7@gmail.com"
] | sholle7@gmail.com |
760d794200067d3220230059a30f4b7cb3575360 | 451fd9e6dc42ea08258c3c294744c98fb8f939cb | /proxyip_pool.py | e852b06d0de5f1900daada7cf2e88b9249742592 | [] | no_license | huangliang0412/webscrawls | 7eaec2ccd4fb06020e7e4732d2a940852e145eb5 | 934c4eec0774764ea232a7ed6635bb8e64422826 | refs/heads/master | 2021-01-12T16:16:32.909965 | 2017-06-01T13:42:28 | 2017-06-01T13:42:28 | 71,976,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | #!/usr/bin/env python3
import requests
import random
import redis
from redis_connect import conn
'''
#r = requests.get('http://www.baidu.com')
proxies = {
"http": "94.228.207.233:8085",
#"https": "94.228.207.233:8085",
}
r = requests.get('http://www.baidu.com', proxies = proxies)
print(r.status_code)
print(r.he... | [
"huangliang866@163.com"
] | huangliang866@163.com |
3a2efb5bb61e4e173d8b0c3791c47e269f4a6a8f | b54ab907310821392659b571e177c01d3c330721 | /music/urls.py | eb04b8f517f4c8ffc336757c68010ab9216bb51c | [] | no_license | adarsh-verma027/demo_repo | 68aff0eeed42672ac9c93af2d0452381e9b0f0a1 | 8b5bca9c046b2726006b30d4f0ceffc99e33b5e0 | refs/heads/master | 2020-03-18T06:10:49.031695 | 2018-05-23T16:22:56 | 2018-05-23T16:22:56 | 134,380,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.conf.urls import url
from . import views
urlpatterns = [
#url(r'^admin/', admin.site.urls),
url(r'^$', views.index),
url(r'^(?P<album_id>[0-9]+)/$', views.detail)
]
| [
"adarsh@git.com"
] | adarsh@git.com |
9dc4b494a28257793973cafba0d97492a5e21a0a | 8dbb2a3e2286c97b1baa3ee54210189f8470eb4d | /kubernetes-stubs/client/models/v1beta1_volume_error.pyi | 9f645d23474efed86f712f543da51fd09fa5d231 | [] | no_license | foodpairing/kubernetes-stubs | e4b0f687254316e6f2954bacaa69ff898a88bde4 | f510dc3d350ec998787f543a280dd619449b5445 | refs/heads/master | 2023-08-21T21:00:54.485923 | 2021-08-25T03:53:07 | 2021-08-25T04:45:17 | 414,555,568 | 0 | 0 | null | 2021-10-07T10:26:08 | 2021-10-07T10:26:08 | null | UTF-8 | Python | false | false | 518 | pyi | import datetime
import typing
import kubernetes.client
class V1beta1VolumeError:
message: typing.Optional[str]
time: typing.Optional[datetime.datetime]
def __init__(
self,
*,
message: typing.Optional[str] = ...,
time: typing.Optional[datetime.datetime] = ...
) -> None: ... | [
"nikhil.benesch@gmail.com"
] | nikhil.benesch@gmail.com |
17d520f308efa52144c77f897580255120253a76 | ddf0ad89d1220550b948dda2a3c52f692d6532fa | /src/compas_pattern/datastructures/kagome/kagome.py | 2534d417426731d560ba945049c836401437e019 | [
"MIT"
] | permissive | jf---/compas_pattern | f220a951d29e2c97886a1a4cf11b75007c81e8f6 | f1663c6362d8751e2f0c45d5699b083e3ed14395 | refs/heads/master | 2021-05-19T08:20:07.774850 | 2020-03-09T09:58:05 | 2020-03-09T09:58:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,679 | py | from compas_pattern.datastructures.mesh.mesh import Mesh
from compas_pattern.datastructures.network.network import Network
from compas.geometry import convex_hull
from compas.geometry import subtract_vectors
from compas.geometry import normalize_vector
from compas.geometry import dot_vectors
from compas.geometry impor... | [
"oval@arch.ethz.ch"
] | oval@arch.ethz.ch |
471d14d56e1a08984f632115d022ada928944b5c | 39f0ac5c2cd93075cd85a4dc744186f495eb6822 | /cloudhands/identity/registration.py | 600b4a949ba3d7f56ca5ee03cac9d1985a4ec15c | [
"BSD-3-Clause"
] | permissive | cedadev/cloudhands-web | f3299522ac9c084918c6c6d0f47eddf2d58609a3 | 2e83df3111c286a54ef3957e873c9ea29c523366 | refs/heads/master | 2021-01-19T14:33:20.213250 | 2015-03-27T09:36:51 | 2015-03-27T09:36:51 | 21,493,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,363 | py | #!/usr/bin/env python3
# encoding: UTF-8
import datetime
import uuid
import bcrypt
import cloudhands.common.schema
from cloudhands.common.schema import BcryptedPassword
from cloudhands.common.schema import Membership
from cloudhands.common.schema import PosixUIdNumber
from cloudhands.common.schema import PublicKey
f... | [
"david.e.haynes@stfc.ac.uk"
] | david.e.haynes@stfc.ac.uk |
445617bc8f5daccd09e3dd3e12eed4659f08155b | 56ebb7505f8b8f31c2d60fd4446798fc3d393922 | /Chapter 03/Functions/homework.py | c8afe43cc31065e5ba236e10e4d5a808b29e9c67 | [
"MIT"
] | permissive | jinjun-ama/AI-Crash-Course | acafb0349051abfb11e32e723874cb4d7bba936c | 9e0181b51986121415fc68d9b02e37f7da255042 | refs/heads/master | 2022-12-18T00:55:29.353127 | 2020-09-28T06:43:14 | 2020-09-28T06:43:14 | 298,290,644 | 0 | 0 | MIT | 2020-09-24T13:40:03 | 2020-09-24T13:40:02 | null | UTF-8 | Python | false | false | 716 | py | # Exercise for Functions: Homework Solution
def distance(x1, y1, x2, y2): # we create a new function "distance" that takes coordinates of both points as arguments
d = pow(pow(x1 - x2, 2) + pow(y1 - y2, 2), 0.5) # we calculate the distance between two points using the formula provided in th... | [
"noreply@github.com"
] | jinjun-ama.noreply@github.com |
1154ea6356bbe41ee8b4f92a5ebf0bc19091a42b | 4d95cab2ac244c26f3fe6538a7b452124ce52aa8 | /ibTracePorts.py | 6b09133d4fa5f941e1ef884d6bc0d796b9211e72 | [] | no_license | plaguedbypenguins/ibTools | 111f153da87c6e63b6d94abd078db9b5c98e13e5 | b5a06795020eded7897a713016f0b3b511321bf0 | refs/heads/master | 2020-04-25T05:19:32.731373 | 2013-02-12T06:46:49 | 2013-02-12T06:46:49 | 7,753,267 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,706 | py | #!/usr/bin/env python
# (c) Robin Humble 2010
# licensed under the GPL v3
# take an IB 'directed path address', and use ibnetdiscover output to figure out the endpoint, usually a host.
# - slurp up a designated ibnetdiscover output to figure out
# which switch ports are connected to HCA's
import sys
import sock... | [
"plaguedbypenguins@gmail.com"
] | plaguedbypenguins@gmail.com |
688f5a27c17943c555fe537f43e8a91de0397e93 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scattercarpet/_uid.py | e693f7c7608fa0de61de5dbd33659c52dd174a3f | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 390 | py | import _plotly_utils.basevalidators
class UidValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(self, plotly_name="uid", parent_name="scattercarpet", **kwargs):
super(UidValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
56be32ba217d1b791ad47524ae71cb3c863a157d | 091a3ad89db18fb02894f956a24724242fcd2e1a | /socketxx.py | 1adfbaf2e18ebfc92648013d9d225fa97afc40d0 | [] | no_license | Eyewart/test1 | 16c24011761f131894dcd1fa1de23a7dfe7a3ee4 | da7e9a78a46ed4707774549ff1cb005cc97f4dd2 | refs/heads/master | 2022-12-11T19:48:27.392410 | 2020-09-02T23:22:00 | 2020-09-02T23:22:00 | 260,712,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import socket
import time
hote = "localhost"
port = 12800
print("Fermeture de la connexion")
connexion_avec_serveur = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connexion_avec_serveur.close()
connexion_avec_serveur.connect((hote, port))
print("Connexion établie avec le serveur sur le port {}".format(port))
... | [
"hrifilaroussi@gmail.com"
] | hrifilaroussi@gmail.com |
d272eec5ee0847d4d5f4a0304ac597276a10b45a | 3c03e3e47a7983159b6d8a7be57083366305a123 | /test/metview/simulated_sat_img.py | 40c9535e73da18c37510b215920fe610a362fef1 | [
"Apache-2.0"
] | permissive | ecmwf/magics-test | 717abfa7982b649018883574c0f13dc088d06b07 | 3bd91275b76ddd430fff24c02f1bce5440fa5334 | refs/heads/master | 2023-06-15T11:13:52.753267 | 2023-06-01T14:42:15 | 2023-06-01T14:42:15 | 176,471,328 | 7 | 5 | Apache-2.0 | 2021-08-17T13:58:05 | 2019-03-19T09:12:22 | GLSL | UTF-8 | Python | false | false | 1,652 | py | # (C) Copyright 1996-2016 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergov... | [
"sylvie.lamy-thepaut@ecmwf.int"
] | sylvie.lamy-thepaut@ecmwf.int |
0611fe9b0f1c708bb1355f5f6025a0fd16acff2c | 818b1f33d51d3b7132e55f7a12188662eca4f5e1 | /gmf.py | 3499ba8a083fd5b6aada66d11bf43f137a4ee00b | [] | no_license | qianrenjian/sequence_recommendation | d2ef1e116766285d813f94732a7ce1dedf47183c | e3a289bfb5ae5643e67aba3aa8f5f04ca6fe5c6e | refs/heads/master | 2020-07-07T12:57:17.944687 | 2019-03-22T06:43:06 | 2019-03-22T06:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,655 | py | import numpy as np
import numpy as np
import theano.tensor as T
import keras
from keras import backend as K
from keras import initializers
from keras.models import Sequential, Model, load_model, save_model
from keras.layers.core import Dense, Lambda, Activation
from keras.layers import Embedding, Input, Dense, Multiply... | [
"249683003@qq.com"
] | 249683003@qq.com |
a9faf9dd14bff6ccdbef59575ef57dd8a5e86634 | 6ff6907120132e40eb7841d9b8e42add98ae110c | /docs/conf.py | 462892757e5b224299a11a045176a8a71d45fa28 | [
"MIT"
] | permissive | CorneliusFranken/solvency2-data | a7ec8e4fb17367a064949617b56394fe70f38eca | 61ab10d297721b2d9cf5063440bb1467b80fc4f5 | refs/heads/master | 2023-07-08T01:03:08.443083 | 2021-09-03T16:49:44 | 2021-09-03T16:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,944 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# solvency2_data documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in thi... | [
"w.j.willemse@xs4all.nl"
] | w.j.willemse@xs4all.nl |
f8e6de07d5227dc1abec9911ddada669643f42bb | 8b97e08d7d7cd904cafe5163eb81d6e2a81fbd90 | /venv/bin/easy_install | 74aede3b0a1b02eca86658618ec7a70e9aa649db | [] | no_license | Shaigift/Python-Practice-3 | 180f8005b31526a4f4c834be5ea46bea1a04ef62 | e464740050513a455debeecc1af568f10707010a | refs/heads/master | 2022-08-27T15:50:14.602975 | 2020-05-20T08:31:32 | 2020-05-20T08:31:32 | 265,501,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | #!/Users/mphoshai/PycharmProjects/untitled/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$... | [
"Mphogivenshai@gmail.com"
] | Mphogivenshai@gmail.com | |
073c78c464eb8c22be7697340798bdfb19009e7c | 8adec48dfaee1cdfd6c7f4d2fb3038aa1c17bda6 | /WProf/build/masters/master.chromium.chromiumos/master_gatekeeper_cfg.py | 68b8a28fa503e0db0192a1a7d126068772a3feef | [] | no_license | kusoof/wprof | ef507cfa92b3fd0f664d0eefef7fc7d6cd69481e | 8511e9d4339d3d6fad5e14ad7fff73dfbd96beb8 | refs/heads/master | 2021-01-11T00:52:51.152225 | 2016-12-10T23:51:14 | 2016-12-10T23:51:14 | 70,486,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | # Copyright (c) 2012 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.
from master import gatekeeper
from master import master_utils
# This is the list of the builder categories and the corresponding critical
# steps. If on... | [
"kusoof@kookaburra.(none)"
] | kusoof@kookaburra.(none) |
9d1134118ab6c2eea397c4ee09486f8954cfb743 | 8659eabdc3668eb0be6fe365e98b8e0654fcd761 | /arraylib.py | f7a2f861df28a35c8b0c97877ac299b4011f5c78 | [
"MIT"
] | permissive | blokeley/forcelib | 25bfcd6120ea0178da88a79c6a0bc7cd9e1ca58e | 003fa02c70ee8ac8486db12a388ce67945488069 | refs/heads/master | 2021-01-10T14:18:39.983510 | 2019-06-10T16:48:43 | 2019-06-10T16:48:43 | 50,867,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | # MIT License
#
# Copyright (c) 2017 Tom Oakley
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, p... | [
"blokeley@gmail.com"
] | blokeley@gmail.com |
2041c8ec7d9ccbc9a16c350bbc04ce23c2dda211 | 0aa615521d59cbcbf821457019170548714ac5df | /Hero.py | 256fac0716a77afb9500512901d12f8aed87d8f1 | [] | no_license | Movado20057/Py-Class | 0d49afc0ccc3c89237366fdbee7950ac5681aa58 | 42bea47cfd1dc3357abe2679a6c71c33b0d4e858 | refs/heads/master | 2021-04-06T14:11:06.555837 | 2018-03-11T16:15:27 | 2018-03-11T16:15:27 | 124,768,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | #Hero's Inventory
#create a list with some items and display with a for loop
inventory = ["sword", "armor", "shield", "healing potion"]
print ("Your items: ")
for item in inventory:
print (item)
input("\nPress the enter key to continue.")
#get the length of a list
print("You have", len(inventory), "items in you... | [
"seun.daniel@gmail.com"
] | seun.daniel@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.