blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8fad0e1ffc2107d073e1e36d04a28101f3819657 | 741663bc3d7dfc49c4b881eafd24e387e925392a | /src/multimodal/models/predict_model.py | feed72242acc25cc48d02f3229d36ee81ff20aca | [
"MIT"
] | permissive | markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection | e957731ca293eb65d1b56dfce6abe607ec20bbf7 | 2f252c072f3091bb27506978dd90311f7f82f386 | refs/heads/master | 2023-07-30T02:22:28.412955 | 2020-06-20T17:12:54 | 2020-06-20T17:12:54 | 273,745,779 | 0 | 0 | MIT | 2021-09-08T02:12:12 | 2020-06-20T16:37:18 | HTML | UTF-8 | Python | false | false | 6,173 | py | import os
import click
import cv2
import matplotlib.pyplot as plt
import numpy as np
from src.helpers import paths
from src.helpers.flags import AttackModes, Verbose
from src.multimodal import multimodal
from src.multimodal.data import make_dataset
####################################################################... | [
"markm.rofail@gmail.com"
] | markm.rofail@gmail.com |
f9a070cd4f54bb5db6172fe1754a0c3ce4c8635e | 32c1f5e296e3fdfd5583b767ba388450c22d4920 | /xclib/tests/prosody_test.py | 0105858d2c138d2284a48ac4bc09dbd37cfca878 | [
"MIT"
] | permissive | wenzhuoz/xmpp-cloud-auth | 848a930677a282e942211a129bff801d85e13ca1 | 8359b80197d2d7743a41cc3c60475d8c8cd2920d | refs/heads/master | 2020-03-16T21:57:13.370802 | 2018-05-11T09:46:13 | 2018-05-11T09:46:13 | 133,021,003 | 0 | 0 | null | 2018-05-11T09:41:24 | 2018-05-11T09:41:24 | null | UTF-8 | Python | false | false | 1,001 | py | import sys
import unittest
from xclib.prosody_io import prosody_io
from xclib.tests.iostub import iostub
class TestProsody(unittest.TestCase, iostub):
def test_input(self):
self.stub_stdin('isuser:login:\n' +
'auth:log:dom:pass\n')
tester = iter(prosody_io.read_request())
outpu... | [
"marcel.waldvogel@uni-konstanz.de"
] | marcel.waldvogel@uni-konstanz.de |
273419d8074c1ba7bc5bf2633a855f024edd0d7c | 00e3bc6d538cb0f1cfcb14cb725c11e1be2503b0 | /steps/offer_steps.py | 71e28eadf0a67c74d36002e46472f77f44d463a0 | [] | no_license | minhwang/carousell_appium_automation | 960e9a433efdd61026cadffdf58f403c7a71759c | 554fda4c1fcf7cecefc2e513a0b6ebad042c6203 | refs/heads/master | 2020-12-30T14:19:21.096863 | 2017-08-21T07:00:48 | 2017-08-21T07:00:48 | 91,303,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from behave import *
from carousell import App, Platform
use_step_matcher("re")
@when('I submit an offer')
def step_impl(context):
app = App(Platform.ANDROID)
context.chat = app\
.welcome_view\
.create(context.wd)\
.login_with_email()\
.login(con... | [
"min81.hwang@gmail.com"
] | min81.hwang@gmail.com |
d57b2b6ba4918837e7dbca3a7ab328705da2f0df | 0593fbd857b5286f93c60056982e9b4d2b23eff7 | /automaton_t.py | 8b8fbfe222d8adc889c56645509ec4df7b0ec6bf | [] | no_license | Moysenko/NFA-converter | 5c74145b081eff6efb834a8a7458f4bb0f83419c | 82de98b2d6bf7602387b5e82a0b246ef406334d9 | refs/heads/main | 2023-01-05T16:12:31.640233 | 2020-10-16T21:52:31 | 2020-10-16T21:52:31 | 300,353,590 | 0 | 2 | null | 2020-10-16T21:52:33 | 2020-10-01T16:51:01 | null | UTF-8 | Python | false | false | 10,366 | py | from vertex_t import Vertex
from collections import defaultdict, namedtuple
import sys, os
import json
class Automaton:
def __init__(self, start=0, vertices=None, alphabet=None, other_automaton=None):
if other_automaton is None:
self.start = start
self.vertices = vertices or dict()
... | [
"moysenkom@gmail.com"
] | moysenkom@gmail.com |
f6b1a60691f6f53ffd82e4d7f873cb546ad3dc71 | 25c9290b26cf39888aad8890c7778b4f4f5c5daa | /Triode-Car/microbit(only)/1.1 Control motor with button/main.py | fd61a508c41d0449300ed51c09c856f5e028b8b9 | [] | no_license | vtt-info/Micropython-10 | 0ca3feaf2297ce5b9c24e46ea0e538316a9e5980 | 1dfc63af4ea863c9c61170974bd022e10ee59a1c | refs/heads/main | 2023-08-29T02:45:49.280754 | 2021-11-03T09:36:45 | 2021-11-03T09:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | #用micro:bit的AB按钮控制triodecar电机
'''
一切与硬件交互直接相关的东西都存在于 microbit函数库中,
一般直接从中引用全部功能。
'''
from microbit import *
'''
使用def来创建自定义函数,将可能重复应用的某些功能的代码写入其中以便调用。
micro:bit的pin14引脚控制着triodecar的左电机,pin15引脚控制着右电机,
引脚输出高电平将使电机停转,低电平将使电机运行。
'''
def direction_stop():
pin14.write_digital(1)
pin15.write_digital(1)
def direction_... | [
"76462385+Wind-stormger@users.noreply.github.com"
] | 76462385+Wind-stormger@users.noreply.github.com |
d2ca8ecfa155dc2a582b16faf400c3ff2d5b08a0 | 3999521ed32fc384ecb0446f2956cd44734bc989 | /apiconfig.py | 6424b51cb212f1139d52645e4fea6f38cd245aa0 | [
"Apache-2.0"
] | permissive | yangyzp/shadowsocksdd | 56789be92be33e45044900caf5b6eb08dc924b21 | 2ecc23db49b28a51e07758b4968d8bcd54ad18d3 | refs/heads/manyuser | 2021-06-19T06:13:08.005075 | 2018-05-07T03:39:52 | 2018-05-07T03:39:52 | 132,402,930 | 2 | 1 | Apache-2.0 | 2021-06-01T22:22:08 | 2018-05-07T03:36:02 | Python | UTF-8 | Python | false | false | 887 | py | # Config
NODE_ID = 1
# hour,set 0 to disable
SPEEDTEST = 0
CLOUDSAFE = 1
ANTISSATTACK = 0
AUTOEXEC = 0
MU_SUFFIX = 'v1m3cc2x'
MU_REGEX = '%5m'
SERVER_PUB_ADDR = '127.0.0.1' # mujson_mgr need this to generate ssr link
API_INTERFACE = 'glzjinmod' # glzjinmod, modwebapi
WEBAPI_URL = 'https://zhaoj.in'
WEBAPI_TOKEN... | [
"noreply@github.com"
] | noreply@github.com |
49b2a27304baa0fd8ed633b0cf8b738d64a581b3 | 1345dc02bbe664db2a8804a0fc0e8a5a7129147b | /sale.py | 43b89520cc39bbaaae2ae1f6992dadd73933e3d1 | [] | no_license | gavindav/DataScienceRepo | e2f9c68a9352c51f72678c7bc2247fd5b83a2a28 | 6378e854ff2428962f8f2d571eeea92a1b3d3edd | refs/heads/main | 2023-02-17T01:26:04.980578 | 2021-01-11T08:59:55 | 2021-01-11T08:59:55 | 328,593,942 | 0 | 0 | null | 2021-01-11T08:59:56 | 2021-01-11T08:18:28 | Python | UTF-8 | Python | false | false | 3,700 | py | # (C) Copyright IBM Corp. 2020
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
"""SaleOrder."""
from odoo import api, fields, models
from odoo.tools.config import config
import re
class SaleOrder(models.Model):
"""SaleOrder."""
_inherit = 'sale.order'
case_number = fields.... | [
"noreply@github.com"
] | noreply@github.com |
9adcc12b7ba970cf3f19bbad83bbd0ecb835aa85 | f15c8b3a6b093c3b70a900221f485d74a1bc1f95 | /0_joan_stark/golf.py | 2f646ee459477d0f80708844a426c3b1cdd2b1bf | [
"MIT"
] | permissive | wang0618/ascii-art | 2955023e47b988f491b9d46bc8a300ba4a6cdd60 | 7ce6f152541716034bf0a22d341a898b17e2865f | refs/heads/master | 2023-07-17T23:17:31.187906 | 2021-09-04T12:46:31 | 2021-09-04T12:46:31 | 400,987,004 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,978 | py | # Hole in One!
# https://web.archive.org/web/20000307135811/http://geocities.com/SoHo/Gallery/6446/golfanim.htm
duration = 200
name = "Golf"
frames = [
" \n" +
" |>18>>\n" +
" |\n" +
" O ... | [
"wang0.618@qq.com"
] | wang0.618@qq.com |
fb004d77dcce82d96824cd25b93bca814fdb7157 | e4aa60a4f8d5f7d85be02b10f05aa956dc92ca68 | /venv/bin/pip | a288e2a0ae32ac4cbff413bfd22b155817b4fa31 | [] | no_license | SerenaPaley/WordUp | 37c29fb2f673421a26ad89a70ae62e75ae2e79a3 | 86b4bb82382abc241eaf8d8e1847d1796365936c | refs/heads/master | 2023-03-18T08:54:53.396244 | 2021-03-02T18:12:50 | 2021-03-02T18:12:50 | 343,645,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/spaley/PycharmProjects/WordGame/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"serena.paley8@gmail.com"
] | serena.paley8@gmail.com | |
3a409d438db536481f5aef2b5b889704149e23f9 | 0d6ecf1dd8d84b1a8ab8f929c0ea4e08531a63fa | /alexa_auth.py | caea5f70132e7c23c54d6f2da3f5a58195ddd124 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | molodoj88/AlexaDevice | 846f1d99fc8e918999c3c47a1996e3eeaaaff13f | 957bdf79970a04f7e85fd0f7835801d0cca08d92 | refs/heads/master | 2021-01-22T21:07:07.390869 | 2017-02-24T13:54:17 | 2017-02-24T13:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | #!/usr/bin/env python3
import alexa_params
import alexa_control
import alexa_http_config
import socket
import threading
from zeroconf import raw_input, ServiceInfo, Zeroconf
from http.server import HTTPServer
localHTTP = None
zeroconf = None
info = None
def get_local_address():
s = socket.socket(socket.AF_INET, sock... | [
"2xl@mail.ru"
] | 2xl@mail.ru |
a02ede264cfadd79a5af66ac1ef5a8d3658d7477 | 37ccb985555670df4a9df2650b41b7cc49c4cecd | /WEEK4/Hamburger.py | b858d3968a4b65a31b4f1171d97e7fd9d66f339a | [] | no_license | PeravitK/PSIT | f525620ad72fdcf55c84b115e8a0484f9f941f60 | f31522199fff312b26d2e3f5d54b0d34a2bec675 | refs/heads/main | 2023-08-18T04:36:09.966788 | 2021-09-19T13:55:37 | 2021-09-19T13:55:37 | 405,643,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | '''Hambergur'''
def main():
'''docstring'''
num1 = int(input())
num2 = int(input())
print("%s%s%s" %("|"*num1, "*"*(num1+num2)*2, "|"*num2))
main()
| [
"noreply@github.com"
] | noreply@github.com |
348fc47cef3dc9dc96c748af7cf91394fd8222e7 | 2d7c21a793c8080a090ce8c9f05df38f6477c7c7 | /tests/data_templates/test_field_definitions.py | c4f05eb9f57000460d8661f4d47b2a554f7826ea | [
"Apache-2.0"
] | permissive | kids-first/kf-api-study-creator | c40e0a8a514fd52a857e9a588635ef76d16d5bc7 | ba62b369e6464259ea92dbb9ba49876513f37fba | refs/heads/master | 2023-08-17T01:09:38.789364 | 2023-08-15T14:06:29 | 2023-08-15T14:06:29 | 149,347,812 | 3 | 0 | Apache-2.0 | 2023-09-08T15:33:40 | 2018-09-18T20:25:38 | Python | UTF-8 | Python | false | false | 5,204 | py | import os
import json
import pytest
import pandas
from marshmallow import ValidationError
from pprint import pprint
from creator.data_templates.models import TemplateVersion
from creator.data_templates.field_definitions_schema import (
coerce_number,
coerce_bool,
FieldDefinitionSchema,
FieldDefinition... | [
"dukedesi22@gmail.com"
] | dukedesi22@gmail.com |
9044ef4372639411577526182e2432646d7b8420 | 1b0934b52c2db1ae96b74b51efc3747989b763e1 | /contacts/serializers.py | 8d5176072ed96dfcbc4b5430efc648b411275355 | [] | no_license | swarajgaidhane15/real_estate_app | 96f7f491ed0994c5f09f3dc654e9266e43a0b0cb | c2473194dcf1d160f54ae4e26446c037290b2775 | refs/heads/master | 2023-04-12T06:30:00.560571 | 2021-05-01T13:24:12 | 2021-05-01T13:24:12 | 359,822,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from rest_framework import serializers
from .models import Contact
class ContactSerializer(serializers.ModelSerializer):
class Meta:
model = Contact
fields = "__all__"
| [
"rutvikgaidhane1508@gmail.com"
] | rutvikgaidhane1508@gmail.com |
c091fb2e440475a0d6d7fdded18bfbd31026ea4e | 85398ab1933641284edb49f77ab2c8f21411129e | /gui/visualization.py | d146d659d4919965a7f2f37ae5ea136604a5d04a | [] | no_license | olavvatne/EANN | 4dcd030fab40548175f236c80cbaa8f13b4ba3aa | dd58375256dc83237f1678506ddb4e9eb53651f9 | refs/heads/master | 2021-01-16T22:51:49.080191 | 2015-04-08T18:45:48 | 2015-04-08T18:45:48 | 32,599,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,101 | py | from tkinter import Toplevel, Button
from simulator.environment import Environment
from tkinter import *
from tkinter import ttk
from enum import Enum
from math import fabs, floor
from gui.elements import LabelledSelect
from collections import deque
#Subclass of the tkinters Canvas object. Contains methods
#for settin... | [
"olavvatne@gmail.com"
] | olavvatne@gmail.com |
9a94ff41afbb90503d4a11767ceae7cee397f000 | 2a764b51f3c6b8d0032b31228bf3d2f9ae3d4ab7 | /firstPythonProject/globalAndLocalScopes.py | ec80d5bc97d87d29cf1be29d84620cec6fbdbcae | [] | no_license | Okles/python | c67a7007106778a3828077660846696dfa72e43d | 60eba9e5e6013be280f3b1c165580de1a60e6594 | refs/heads/master | 2020-03-16T23:17:50.907071 | 2018-06-29T14:23:45 | 2018-06-29T14:23:45 | 133,072,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | def spam():
eggs = 99
bacon()
print(eggs)
#global variableName creates a global variable inside a function
def bacon():
ham = 101
eggs = 0
print(eggs)
spam()
eggs = 42
print(eggs) | [
"l.oklesinski@gmail.com"
] | l.oklesinski@gmail.com |
8b84f45fa19f09a482011666f1125ef4cea7f135 | a2cdc4b934d57da60190d250784af59d94ce6767 | /led8x8m/__init__.py | da50e3ff9e4d2345325ae3a97d5679d89cafdd90 | [
"MIT"
] | permissive | soundmaking/led8x8m | 1a9152a02e9d80b1b25200d7bd087d00b88ce5b8 | 383fe39c9e328951a25fd23298a4a4c11e8c964e | refs/heads/main | 2023-01-12T00:37:47.832057 | 2020-11-20T09:15:29 | 2020-11-20T09:15:29 | 310,889,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | # led8x8m/__init__.py
import RPi.GPIO as IO
from time import sleep
class LedMatrix():
PIN_X = (12, 22, 27, 25, 17, 24, 23, 18)
PIN_Y = (21, 20, 26, 16, 19, 13, 6, 5)
matrix_buffer = [
[1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1,... | [
"soundmaking@merfasmean.com"
] | soundmaking@merfasmean.com |
26b5977a9cdd6177a1d5b17a3b207e49b4f83eb4 | da6e2f791c8b4610775ecc4db273f2a8fc80a015 | /pixivrss.py | 4dba695605fe8a75fa939246eadbcf3bcb114dc7 | [
"CC0-1.0"
] | permissive | tsudoko/pixivrss | 5faf3e035c59bfe23fbed60498f677d75920ecca | b0b62a5f929f7365492e250bc9b1ee8c4afef5a7 | refs/heads/master | 2021-01-18T22:59:13.844762 | 2019-09-06T11:26:38 | 2019-09-06T11:26:38 | 41,524,243 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,465 | py | #!/usr/bin/env python3
# This work is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain
# Dedication license. Its contents can be found in the LICENSE file or at:
# http://creativecommons.org/publicdomain/zero/1.0/
from datetime import datetime, timezone
from email.utils import formatdate as rfc822
from xml.sa... | [
"flan@flande.re"
] | flan@flande.re |
fb34fef5a994d27aa76b19358a3979cd8df5aaf8 | 26ce347a68ce7ab060ee6d60459b0fb33a61b155 | /lesson1_4_name_spaces_and_scopes.py | 483e54fc2942f0da50f476a2922395f4ee595eb5 | [] | no_license | ekstash/stepik_python_course | d7864bdeb1bd501cf69f85702f1a0c5f48917a85 | 342b2b6b196af90a891957ac8f8300f2361451f6 | refs/heads/main | 2023-02-05T15:48:14.425728 | 2020-12-28T20:55:26 | 2020-12-28T20:55:26 | 321,792,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # большая часть урока понятна и так, но есть интересные моменты, о которых я не задумывалась.
for i in range(5):
x = i * i
print(x) # здесь x создастся как глобальная переменная.
x = 0
def function():
global x # работаем с глобальной переменной x. Именно глобальной, это не работает для функции в функции
... | [
"ekstash@yandex.ru"
] | ekstash@yandex.ru |
df42974f8feaba118778818317b26cfb50904473 | 94c9bcf833689a7f64099531bfb67ca827eb9bf8 | /bot/modules/rclone.py | d7cf48216f67dccb84926ea1e0cadbedffd9f717 | [] | no_license | boyerharold033/ARPT-Bot | f9685140de2eafb0f5a99c9eabad276c9907621a | 644dc7c9018bb8586fcbbc27bd3dff2cccd20c93 | refs/heads/main | 2023-08-28T09:06:51.171170 | 2021-11-10T13:16:48 | 2021-11-10T13:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,776 | py | import time
import subprocess
import sys
import re
import json
import os
import threading
import requests
from config import Rclone_share,Aria2_secret
from modules.control import cal_time,only_progessbar
def hum_convert(value):
value=float(value)
units = ["B", "KB", "MB", "GB", "TB", "PB"]
size = 1024.0
... | [
"769020367@qq.com"
] | 769020367@qq.com |
dba3ee426705b4ed70feb471665fa78dfd7174d7 | 73bebf4fc3cf6b72193292c92ae2228f62facb3f | /utcnormal.py | 3468b870b7447a5982c82bb5dba4fa761bda47d6 | [] | no_license | Atari-Frosch/utcnormalise | 4bfe9720e34c2a67c790994d97b4ccc1b2f54f22 | 2fb5869dace892011a31b310ae6d61ec5b42d303 | refs/heads/master | 2016-09-11T12:43:04.417008 | 2015-04-16T17:57:49 | 2015-04-16T17:57:49 | 34,066,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,933 | py | #!/usr/bin/env python
# coding: utf8
import datetime
'''
This works only as long as the difference to UTC is in full hours!
'''
class date_normaliser(object):
def invert_utcdiff(self, utc):
if "+" in utc:
if utc == "+0":
utcdiff = 0
else:
utcdiff = 0... | [
"frosch@atari-frosch.de"
] | frosch@atari-frosch.de |
7e8548d8a6de1e92bfe9ae3a868ce13ea025c259 | cc4f5f736adef13c5d259b4d061681bdef238576 | /great_expectations/expectations/metrics/column_aggregate_metrics/column_min.py | 7b82733a813ca0aafa863bd643df5dce22d26e90 | [
"Apache-2.0"
] | permissive | chsigjan/great_expectations | 3f133271abd24c4ea1d9d6b8cfada83fd58f520a | 56d048f4cca073154ce67ca9696a75917ad8c81c | refs/heads/main | 2023-08-12T08:41:52.709139 | 2021-09-30T15:51:40 | 2021-09-30T15:51:40 | 412,717,483 | 1 | 0 | Apache-2.0 | 2021-10-02T06:59:22 | 2021-10-02T06:59:21 | null | UTF-8 | Python | false | false | 1,054 | py | from great_expectations.execution_engine import (
PandasExecutionEngine,
SparkDFExecutionEngine,
)
from great_expectations.execution_engine.sqlalchemy_execution_engine import (
SqlAlchemyExecutionEngine,
)
from great_expectations.expectations.metrics.column_aggregate_metric_provider import (
ColumnAggre... | [
"noreply@github.com"
] | noreply@github.com |
e695d0df27a389029524c11afe920770636319d2 | d6d2b61aeb44b3e9fbed8fd9839f1e8abaaf74a8 | /tests/unit/peapods/runtimes/container/test_container_runtime.py | 42143d96d76a7c4656cd9f57f01a92854cdd3430 | [
"Apache-2.0"
] | permissive | 10zinten/jina | b9776b8e28fc546e7eb205b67857ebbf56bcc51d | f18b04eb82d18a3c554e2892bbae4b95fc0cb13e | refs/heads/master | 2023-08-26T22:01:58.578591 | 2021-10-25T23:06:49 | 2021-10-25T23:06:49 | 400,064,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,029 | py | import os
import time
from sys import platform
import multiprocessing
import pytest
from jina.checker import NetworkChecker
from jina.executors import BaseExecutor
from jina.executors.decorators import requests
from jina import Flow, __windows__
from jina.helper import random_name
from jina.parsers import set_pea_par... | [
"noreply@github.com"
] | noreply@github.com |
fb4a0f6047e8b49dd942360dcb017c97f5fe04f5 | a4b2e0612d765429e4dccd037daa3763eb54c12c | /code/model/comment.py | 92ee39692d72148be2a45e0a16ac3b0f2eb6de33 | [] | no_license | evertheylen/SmartHome | b98238ed43d1a39e08ae7e8f7deaea93505384db | 542468e7ba03f81be765a876797cdd0c7094f22b | refs/heads/master | 2020-04-10T19:09:14.047037 | 2016-05-19T11:08:59 | 2016-05-19T11:08:59 | 51,506,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py |
from sparrow import *
from .owentity import *
from .status import Status
from .user import User
class Comment(RTOwEntity):
key = CID = KeyProperty()
status = RTReference(Status)
author = RTReference(User)
date = Property(int)
date_edited = Property(int) # If they are the same, no edits
text ... | [
"hermans.anthony@hotmail.com"
] | hermans.anthony@hotmail.com |
845e06146026e7a00fd10824220dd35e50e2ccab | 127d8c209b00978f4f660534363e95eca3f514f2 | /backend/home/migrations/0002_load_initial_data.py | 110b21901b630cf3f96ad807523e091bfc8ac157 | [] | no_license | crowdbotics-apps/sitespace-19938 | afd070e64d32ab455f9b2b05e376152e9e28e5ad | 416b5cef0bdb25018ec3b634bf3096e61fe8b662 | refs/heads/master | 2022-12-10T15:52:58.601025 | 2020-09-02T15:20:15 | 2020-09-02T15:20:15 | 292,319,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Sitespace"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
82dd296e5b4516cc622e3a206cb39c14e931ec3c | 84123de245cbea1c3d299421fec03401b27c274c | /Lecture 8 programming exercise/lecture8.3.largest.py | 43be0d2b64ebb00699f40518cbcb854c80297170 | [] | no_license | udanzo-p/Lectures38 | ae43801f6770a6f05a4fa7ef4bc57b597181e992 | 65128508931573517f4ef850d699ea95c780258c | refs/heads/master | 2020-12-12T21:31:29.949256 | 2020-02-04T08:54:41 | 2020-02-04T08:54:41 | 234,233,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import math
k=int(input())
target=int(input())
print("To find largest digit no. divisible by ",target)
pow=math.pow
a=(pow(10,k)-1)
while(int x=target):
if(a%target=0):
print("The largest no. divisible by is ",target,a)
else:
a=a-1
x=x-1
| [
"noreply@github.com"
] | noreply@github.com |
ba508a2958f5325258855671103405bc641ebe97 | a5e591dc09e11e88af56fb5a881fae064fb9c495 | /recruitment/recruitment/doctype/interview/interview.py | 0449ed7ff48f9261f3c429e7522f6aad25c3b49d | [
"MIT"
] | permissive | barathprathosh/recruitment | 6b61dd1ee9c0b9d7851b0b3e5bab307f7ee2d1b5 | 9660944856e72288e47960e6802ec97a220a656d | refs/heads/master | 2020-04-29T03:03:51.722972 | 2019-03-15T08:58:32 | 2019-03-15T08:58:32 | 175,794,797 | 0 | 0 | NOASSERTION | 2019-03-15T10:00:32 | 2019-03-15T10:00:31 | null | UTF-8 | Python | false | false | 250 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Interview(Document):
pass
| [
"abdulla.pi@voltechgroup.com"
] | abdulla.pi@voltechgroup.com |
b63af80e07a7db51998cd62a6b59a52a243d8216 | ec0fe7fa7951a42dcf8fb9e3a910cc78ea58ab3d | /aeroctf/solution.py | 56610d813c8ea411df6bbbdb4ac618819f5cd4ca | [
"MIT"
] | permissive | S7uXN37/CTF-Writeups | 6111f70f0d811734cd8b4fcc41c73a0a4d582dc4 | ffbbae7e3c98bf47786d9996e114412325117a3a | refs/heads/master | 2021-02-08T18:59:25.115539 | 2020-04-20T16:04:36 | 2020-04-20T16:04:36 | 244,186,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | from pwn import *
from binascii import *
from time import sleep
from z3 import *
ciphers = [
"7685737a9f7895737a9f84857b769f7a" + "657b769f78898378",
"717785747885858d6f7e917364686776",
"7393a992708d8fad708d83aa7273707d" + "6f3939856b7d398bb53b8b34b573b6c5618e7135"
]
plains = [
"test_test_test_t" + "est_test",
"qwert... | [
"S7uXN37@users.noreply.github.com"
] | S7uXN37@users.noreply.github.com |
268ab70d2790ee69fd6584adc601abb2cb0fafbc | 05487c52248d7b185fadd7824d709c23c4877e43 | /modules/GuiWidgetManager.py | 291596dc304137d9d45439efd37e177776cb3ed0 | [
"MIT"
] | permissive | reality3d/molefusion | 6b3751bcb0c4350eccced2a2ffa1f3190cd610b0 | df6e3486a412777117aa63d68d169102065051fd | refs/heads/master | 2016-08-04T04:58:38.925897 | 2013-09-02T19:42:20 | 2013-09-02T19:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,027 | py | import pygame
from pygame.locals import *
from GW_TextInput import GW_TextInput
from Event import Event
from Constants import Constants
class GuiWidgetManager:
"Widget Manager Container"
def __init__(self , widgetlist):
"Sets up the widget Manager"
self.background=Constants.BACKGROUND
self.screen=Constan... | [
"reality3d@gmail.com"
] | reality3d@gmail.com |
7a80572cd829ac7a970a7e869f590fbca51c840e | b410a506bd4bdbbc55a770ab76e0507625ebb52e | /app/admin/forms.py | 651179a851d4b8765a8b9efd99cd96820ecce34e | [] | no_license | fadebowaley/MO-App | 6a219a984c89c2dd0601a6f3f3d46810b644dcb3 | b7de965390d69e349533765db0ac190e8a67684b | refs/heads/main | 2023-08-24T06:17:17.510741 | 2021-09-14T12:31:30 | 2021-09-14T12:31:30 | 403,637,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | from flask_wtf import FlaskForm
from wtforms import Form, FieldList, StringField, StringField, SubmitField, BooleanField, \
PasswordField, TextAreaField, SubmitField, FormField, SelectField,\
FileField, IntegerField, TextField, FieldList
from wtforms.validators import DataRequired, Length,ValidationError, InputReq... | [
"fadebowaley@gmail.com"
] | fadebowaley@gmail.com |
1b97ca333f9999257c9f67250e6f7ea46ba7df58 | 605936a6e51061b25dd04b688ddab41f10c24153 | /Easter Competition.py | 9bacdd0f037d3c209eb241e3a89588453b2e855f | [] | no_license | EmanuilManev/Python | d8e16f8c48ef55d9ef6063eb7702fea94b5078f5 | 8f0f454ebba08857c3bfcd76db75e6dd3bb6de84 | refs/heads/master | 2021-04-11T02:36:55.146516 | 2020-03-23T14:08:47 | 2020-03-23T14:08:47 | 248,986,319 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | kozunak = int(input())
index = 1
vhod = str("")
score = 0
m_score = 0
top_chef = str("")
for index in range(kozunak):
chef = input()
while vhod != "Stop":
vhod = input()
if vhod != "Stop":
score += int(vhod)
print(str(chef) + " has " + str(score) + " points.")
if score > m_sc... | [
"noreply@github.com"
] | noreply@github.com |
3d033f53f447828b966051b34b7913e92aa9b31b | 772a1fad7ff949c41920004579166fcab58af7a5 | /app/main/views.py | 198cfee8dab5b104352c62526b6aa218495243ed | [
"MIT"
] | permissive | saudahabib/news_highlight | c29a461ba185be23fd0a183239af245557f11d6c | 6d59b85b93497e14e988be2bf9e0fb358d871622 | refs/heads/master | 2020-05-09T10:02:56.993083 | 2019-04-17T08:00:00 | 2019-04-17T08:00:00 | 181,026,997 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | from flask import render_template
from . import main
from ..request import get_sources, get_source, get_articles
from ..models import Article, Source
#Views
@main.route('/')
def index():
'''
View root page that returns the index page and its data
'''
sources = get_sources()
articles = get_articles('... | [
"saudababs00@gmail.com"
] | saudababs00@gmail.com |
19caab41b1e7e5822d71d8e70217b1ac6dda3b67 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_005_20180620141234.py | 396d0dea7f396d2fdc9165bfceb7cd75b20f3c37 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,622 | py | from random import randint
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6, 3, 1],
[9, 5, 6, 1,... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
cac8cca8bbafc756a771cbbd21f316a640e98cd7 | 6b4a48fb6142789326654c48d32acda3eb5e7b08 | /formationproject/wsgi.py | a9ea3c0a982ffb7af95cba5e2211d90796a89dd1 | [] | no_license | mwesterhof/formationproject | 0d9795c218b5010bfbb716216d3d8f4fa5bd4799 | 1b4a057b996829609e308c78721aca840ec58ee7 | refs/heads/master | 2023-08-19T00:08:58.282341 | 2021-10-08T16:19:18 | 2021-10-08T16:19:18 | 401,425,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for formationproject 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"m.westerhof@lukkien.com"
] | m.westerhof@lukkien.com |
b236c8c4e623cf11c90bb5c8d15b7e0df7aba00b | 7d66ec851a0bbba1403848e2caf7323d89797936 | /abra/inference/__init__.py | 40fcd85e690de6a5a0222958aa03e7e2ddf5acce | [
"MIT"
] | permissive | seekshreyas/abracadabra | d19aceb9de2dbbcfb7feb3c3e14ccb1c4c164095 | a79f03bba2917ab4cc99d4c3ec0459401842ee9f | refs/heads/master | 2022-10-05T07:41:21.163255 | 2020-06-12T17:43:04 | 2020-06-12T17:43:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | from abra.inference.inference_base import InferenceProcedure, FrequentistProcedure
def get_inference_procedure(method, **infer_params):
_method = method.lower().replace('-', '').replace('_', '').replace(' ', '')
if _method in ('meansdelta'):
from abra import MeansDelta as IP
elif _method in ('pro... | [
"dustin@quizlet.com"
] | dustin@quizlet.com |
89b1685f529264b86004c272eb59419b27a1315b | 4a42fefd8945c73402ddf36f8943e011cd9c4151 | /projects/myhellowebapp/hellowebapp/wsgi.py | 2b6fe00b6b8875c39ed849cf147b0eb94f51d25b | [] | no_license | momentum-cohort-2018-10/hello-web-app-SowmyaAji | c2c1374b460232822ff91fc1d034f1d89a400332 | 2cfe7fd6d22db4f9b9ac0d8fdc611787cb1372c5 | refs/heads/master | 2020-04-06T11:53:35.991478 | 2018-11-18T20:48:49 | 2018-11-18T20:48:49 | 157,434,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for hellowebapp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"sowmya.aji@gmail.com"
] | sowmya.aji@gmail.com |
bc87958ada6e6684a8aae3abd9d9e9d963c1b983 | 92f5057eeab3b5fb6952f478917bd84858907588 | /socialbayes.py | 0d959c7bb67bcedaecf9d8530d00f1e641ff07e9 | [] | no_license | enjoylife/mlsocial | 6e16c8f5fd836e34bbca1192b1b94cf1e2914f8a | 0ac877e4ffa013cd075ee65a09247b8a65cb8185 | refs/heads/master | 2021-01-22T23:33:40.081502 | 2012-02-18T06:16:16 | 2012-02-18T06:16:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,261 | py | # -*- coding: UTF-8 -*-
import Stemmer
#twitter_search
import requests
from requests import RequestException
from requests import async
from urllib import urlencode
from urllib2 import urlopen
import json
from multiprocessing import Process
from thread import Thread
#redisbayes
import re
import math
import redis
impor... | [
"mclemens66+github@gmail.com"
] | mclemens66+github@gmail.com |
63b940320659fb0fc6204694ab667047cfce35e3 | 7f957ab6a6a0d9b6d21c126134aad956eaad8fb0 | /mod/data_encoding/__init__.py | b7d241a4e2f630278f21584a37a01f09889618bf | [
"MIT"
] | permissive | wangludewdrop/algorithm-tools | a3fc96118c38306e017812c2b93fd930985c50f8 | 094fd0c8587efbead704ff1b49e06fb7a00468b7 | refs/heads/main | 2023-04-12T18:39:50.240765 | 2021-05-06T10:32:56 | 2021-05-06T10:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | # -*- coding: utf-8 -*-
'''
Created on 2021/02/27 18:02:32
@File -> __init__.py
@Author: luolei
@Email: dreisteine262@163.com
@Describe: 初始化
'''
__all__ = [] | [
"dreisteine@stu.scu.edu.cn"
] | dreisteine@stu.scu.edu.cn |
b9e4db8d80d9a37b23a0d85cebf5894410c987cd | 3b97c64fcee27cb19faab732ff1b7d71347881c8 | /Consumption_Prediction/Codes/Data_Processing.py | 40e615d8149cb51b73ce5732771b5c9319d8fb1c | [] | no_license | pedrobranco0410/E4C-Forecast | 43a6048ac2520401fab152103b971090f2864bdb | 5807bd8f4053f18298387cf596cc88f518b0e402 | refs/heads/master | 2023-07-02T07:29:40.076176 | 2021-08-06T09:44:46 | 2021-08-06T09:44:46 | 375,277,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
def read_csv(path, interval):
"""
Reads the csv file in the corresponding path and returns a dataframe with all data rearranged in desired intervals
"""
df = pd.read_csv(path, usecols=[0,5, 6,7,8,21,24], index_col=... | [
"pedrobrancondrade@gmail.com"
] | pedrobrancondrade@gmail.com |
433dc5780c6bf966236e507e8947e87df83870a2 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /Amazon/VideoOnsite/926.flip-string-to-monotone-increasing.py | d4efde64ddbe2e4540f93d5acfa3516e947730ab | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | #
# @lc app=leetcode id=926 lang=python3
#
# [926] Flip String to Monotone Increasing
#
# @lc code=start
class Solution:
def minFlipsMonoIncr(self, s: str) -> int:
n = len(s)
cnt0 = s.count('0')
cnt1 = 0
res = n - cnt0
for i in range(n):
if s[i] == '0':
... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
fc3a2dd07ead6d429cbfb7267d00260f4065db16 | e6a8e129c14c641072645f55dad5248d67a6b7ef | /Project/backend/accounts/urls.py | c6ba47a7d390ed7facf66cbfd465f6f50c374589 | [] | no_license | Dongock/aiosk | 6fcb3f5b5d360f9cead3aaf3bac07a615b5b86f2 | ca761ad258938214ceee09c42b6152c9d8a50198 | refs/heads/master | 2023-02-10T00:05:23.172411 | 2020-12-21T03:53:45 | 2020-12-21T03:53:45 | 323,223,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.urls import path
from . import views
urlpatterns = [
path('coupon/', views.coupon),
path('class5/', views.class5),
# path('coupon/use/', views.use_coupon),
] | [
"okdong23@naver.com"
] | okdong23@naver.com |
533417aa0ac2c08e47b14885a90b9b910347f2d1 | e9fc61eff5ef4f73dd7cb810dff10ea71d402b16 | /find_sum.py | b85dc25e48b59b5d12f74d2ded3c0f7ca6149455 | [] | no_license | syasuhiro2019/08_if_and_for | 7720d7e4d9f06bcba012bb7379ef2eed03bd92c5 | 092b0515f9a0541e86ef712e1e54281b5d585242 | refs/heads/master | 2020-04-27T20:31:15.285801 | 2019-03-09T08:34:36 | 2019-03-09T08:34:36 | 174,661,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | numbers = [34, 432, 1, 99]
total = 0
total = total + numbers[0]
total = total + numbers[1]
total = total + numbers[2]
total = total + numbers[3]
print(total)
total = 0
for number in numbers:
total = total + number
total = 0
print(total)
for number in numbers:
total += number
print(total)
| [
"s_ychm@yahoo.co.jp"
] | s_ychm@yahoo.co.jp |
2e309a5345ef496934edd7635284f37e09219c00 | 8c67f4d3df0dcb9c94420239f0e5dca0d054371c | /functions/soccer_results.py | e91217277e9cbeeef99ff1c877d380f73614a4d2 | [] | no_license | Sanusi1997/python_power_of_computing_exercises | 49ea74ac83d513f4703a9026176882db49e24810 | cd1626b5ab6d5d5e88a7eecf8c723965a4caf5ef | refs/heads/master | 2021-01-14T23:40:20.245877 | 2020-07-03T20:15:16 | 2020-07-03T20:15:16 | 242,799,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | def soccer_scores(first_team_scores, second_team_scores ):
""" A function that takes two integer arguments that represents a
soccer result and prints the winner from the score """
if first_team_scores > second_team_scores:
print(f"Final score is {first_team_scores}:{second_team_scores} \nTeam o... | [
"sanusihameedolayiwola@gmail.com"
] | sanusihameedolayiwola@gmail.com |
bd3316480a59c494040f990aefb5deb06677a1bf | e44301fb87ecce8defe68fdaa5f540753e8dbccf | /server/app/services/base/views/file_system.py | c951f50d81399432afdfbde5d532b90b72bbe4df | [
"Apache-2.0"
] | permissive | dlsurainflow/actorcloud_BE | d2766a6937ca87a3fc77de849d43938abd3276e9 | c7eff034185d6f39c408f2b6c75c138c7febdf47 | refs/heads/master | 2023-06-16T19:53:46.188814 | 2020-11-11T07:00:02 | 2020-11-11T07:00:02 | 297,188,795 | 0 | 0 | Apache-2.0 | 2021-07-19T07:39:45 | 2020-09-21T00:25:36 | Vue | UTF-8 | Python | false | false | 2,327 | py | import hashlib
import time
from flask import jsonify, g, request, send_from_directory, current_app
from flask_uploads import UploadNotAllowed
from actor_libs.decorators import limit_upload_file
from actor_libs.errors import APIException, ParameterInvalid
from app import auth, images, packages
from app.models import U... | [
"wilyfreddie@github.com"
] | wilyfreddie@github.com |
a9e8d88a96e19be6e971f475c10c84ebd1e981f2 | cb6e5c8a91dce5911afbbbb7a8a4b55bc0c7687e | /scripts/SuperRod/superrod_GUI_pyqtgraph_chemlab.py | a439ead1fc9fcc5dd2d90dc7e86ea2982ea0dcae | [] | no_license | jackey-qiu/DaFy_P23 | 3870d4e436b0e9df7f1dcb747caaf38589274f92 | ad2ca8e16e92935233e84c2d9fe2b59f4f114444 | refs/heads/master | 2022-04-10T18:32:24.392046 | 2020-03-22T18:22:46 | 2020-03-22T18:22:46 | 198,180,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,159 | py | import sys,os
from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog
from PyQt5 import uic
import random
import numpy as np
import pandas as pd
import types
import matplotlib.pyplot as plt
try:
from . import locate_path
except:
import locate_path
script_path = locate_path.module_path_locator()
DaFy_... | [
"cqiu@alaska.edu"
] | cqiu@alaska.edu |
9dec5036ce036c0f4f8ece900dbe9b0c7f4709df | 0e8be64523c1fca6594118f61e8f9ef6d26ccb00 | /2017/0924_boys_names.py | a51ffd5cca53989959741ae2ed9071c5999921a7 | [
"CC0-1.0"
] | permissive | boisvert42/npr-puzzle-python | 782184540d8e9f62a9f8ab8a39ef51088839c1e8 | 5e3761e7cf3d9f6a05c9f32d6a26444375e73aff | refs/heads/master | 2020-05-22T01:14:51.732606 | 2019-12-29T17:32:40 | 2019-12-29T17:32:40 | 56,475,366 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | #!/usr/bin/env python
"""
NPR 2017-09-24
http://www.npr.org/2017/09/24/553147004/sunday-puzzle-what-s-in-a-name
Think of a familiar 6-letter boy's name starting with a vowel.
Change the first letter to a consonant to get another familiar boy's name.
Then change the first letter to another consonant to get another f... | [
"boisvert42@gmail.com"
] | boisvert42@gmail.com |
35de3051422fc58eeb8bcd5a8d99d3ce2a367973 | 107e7aca94b888b36f67c24a740c4aae7f827341 | /tacker/tests/unit/vm/test_plugin.py | 2ba2c91015a21cd35c15845285bbd463d7abc9a1 | [
"Apache-2.0"
] | permissive | vmehmeri/tacker | b397292511242bfe50540d10c5e116c23f312749 | d05cbaa26361090f36275a942ad87f6ecd3dd480 | refs/heads/master | 2020-05-29T10:23:21.900489 | 2015-10-08T15:46:15 | 2015-10-08T15:46:15 | 57,904,655 | 0 | 0 | null | 2016-05-02T16:41:15 | 2016-05-02T16:41:15 | null | UTF-8 | Python | false | false | 6,776 | py | # Copyright 2015 Brocade Communications System, 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
#
# ... | [
"sseetha@brocade.com"
] | sseetha@brocade.com |
76d04754ce5210635d52dd9cebffe88b8f70157b | 14a4864b10c64ed0f2d9662dae0dfe7bfb9b367e | /blog/urls.py | 268192c06ad190b9c2de92b9b58b875a26eef86f | [] | no_license | PungentLemon/My-portfolio | 0e54126992474e74c31d3d02aa8653f45350d99d | f7603cbc68f7a1db9ef57c78e2a7739e5e7637be | refs/heads/master | 2020-05-22T23:19:58.083478 | 2019-05-14T06:09:47 | 2019-05-14T06:09:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py |
from django.urls import path
from . import views
urlpatterns = [
path('',views.allblogs, name='allblogs'),
path('<int:blog_id>/',views.detail,name='detail'),
]
| [
"kukurureloaded@gmail.com"
] | kukurureloaded@gmail.com |
0ec26afbb8f3455b69bdcaa43e81f526289e0d08 | 97c418826161258cd6eb6c636689a6e649104cb4 | /Codigo/Aula-10-Processos/threads_e_sockets/app/aula8_fixed_client.py | fcb9abb07914e59c0f6f0e120d3faec734ef14e6 | [] | no_license | mairags/cet-100 | b53347799df3c5aee4010c53adf9b2eda6492274 | 21567e3f0623c34995c8dc2252c9c77f4053a9b6 | refs/heads/master | 2023-04-17T20:52:50.293209 | 2021-05-04T14:37:31 | 2021-05-04T14:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from socket import socket
from threading import Thread, Lock
TAM_BUFFER = 1000
NUM_REQ = 10
LOCK = Lock()
def enviar():
sock = socket()
server_info = ('127.0.0.1', 5000)
sock.connect(server_info)
dados_recebidos = sock.recv(TAM_BUFFER)
if LOCK.acquire():
print(dados_recebidos, flush=True... | [
"mathias.brito@me.com"
] | mathias.brito@me.com |
c718408ccc29e4bca88b5deef7e84bb586acddfc | ea0c0b8d67a42086f840149b3dbe1c0e4f58e56f | /members_area/forms.py | 06d19b868f16f535ae4172f3cc5f191a2c75b8b0 | [
"MIT"
] | permissive | AzeezBello/raodoh | 78b27e0886f8882144a4def160d9c3f53bcc6af9 | 296bd44069bd750557bf49995374601f5052d695 | refs/heads/master | 2022-05-03T05:07:21.632642 | 2020-02-26T10:16:08 | 2020-02-26T10:16:08 | 235,878,080 | 0 | 0 | MIT | 2022-04-22T23:01:27 | 2020-01-23T20:15:39 | JavaScript | UTF-8 | Python | false | false | 194 | py | from django.forms import ModelForm
from .models import Lesson
class LessonForm(ModelForm):
class Meta:
model = Lesson
fields = ('title', 'course', 'body', 'url', 'video')
| [
"azeez@scholarx.co"
] | azeez@scholarx.co |
2a0e0bf2a10cc41a975d515cc6c614e82a56b20b | 2655a633b6c5f89400901179a7c19d76a7edc127 | /smili2/uvdata/uvdata/antable.py | 252d488532abdda27b395382fdea81720c9e9832 | [] | no_license | astrosmili/smili2_dev | c069d943405bd78ac95addc4d36ee0c9eb419cf6 | 06a389ebe054d9b285adf820e570484f56489fdb | refs/heads/master | 2021-09-17T06:13:40.090548 | 2021-03-18T06:18:17 | 2021-03-18T06:18:17 | 238,537,673 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
'''
__author__ = "Smili Developer Team"
# ------------------------------------------------------------------------------
# Modules
# ------------------------------------------------------------------------------
# internal
from ...util.table import DataTable, DataSeri... | [
"kazunori.akiyama.kazu@gmail.com"
] | kazunori.akiyama.kazu@gmail.com |
415003695854767481118785de3b9da037c212d6 | 8db966ce80c6f5ae18243e42f8912bbc9e2bafa3 | /BPNN/BPNN_Regression/polution2/no2.py | 75e8cd74f81027481c28777156ba0022fe5872d3 | [] | no_license | soar200/PythonWorkSpace | 720d2066355089873651e926804de410157b7c93 | 95c90253981a6ea650f6191d1036e11eb2c936a6 | refs/heads/master | 2021-01-30T13:13:24.570947 | 2018-11-26T08:28:04 | 2018-11-26T08:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,043 | py | #-*- coding:utf-8 -*-
# &Author AnFany
# 适用于多维输出
from HB_Data_Reg import model_data as R_data
from HB_Data_Reg import L as LL
from HB_Data_Reg import n as N
import numpy as np
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import matplotlib.pyplot as plt
'''第一部分:数据准备'''
'''第二部分: 基于Tenso... | [
"595001741@qq.com"
] | 595001741@qq.com |
c04f34aa199ad324a1340a32baf2c128a229bff8 | 1b0b44c8cb454d0241a732766f381ac908a3db96 | /merchant/backend/src/currency/__init__.py | f474fb25e8ed449f118c1ee2a0623071fd559e61 | [] | no_license | zeeis/reference-merchant | 35515ffba1b26fed29789cd26d26eaf265fee30c | f62c4185a0b53cf7512862a50c5a1bb74a86b377 | refs/heads/master | 2023-08-21T22:10:39.781860 | 2021-07-18T12:51:45 | 2021-07-18T12:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from .amount import Amount
from .currency import FiatCurrency
from .price import Price
| [
"ericnakagawa@gmail.com"
] | ericnakagawa@gmail.com |
f4dc6c951770b51ced2bc9a8a162b854c7b97c23 | 8ddd9445d773e8f10c0726a7503968557413d363 | /veri.py | 0fc85fe190025887014dad1816edcf31bbba9b56 | [] | no_license | Tuuf/telegrambot | 50b928794213b185dc2c51d9b21e0fc5dc801a94 | 241665629bc4ef4f2c2b60ba6e30f2d04373070c | refs/heads/master | 2022-12-16T01:46:04.775399 | 2020-09-02T14:45:18 | 2020-09-02T14:45:18 | 288,405,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | import httpx
url="https://finans.truncgil.com/today.json"
response=httpx.get(url)
veri=response.json()
x = veri['ABD DOLARI']
amerika = x['Alış']
x=veri['İNGİLİZ STERLİNİ']
sterlin = x['Alış']
x=veri['İSVİÇRE FRANGI']
frank = x['Alış']
#
x=veri['KANADA DOLARI']
kanada = x['Alış']
#
x=veri['KUVEYT DİNARI']
kuveytdin... | [
"noreply@github.com"
] | noreply@github.com |
dd06fdb0ad1fa5a35fe8493e6cb4d7907be97e88 | 493915d74f4ad666a3673b8cf55d3521c8e10fad | /GMail_Alerts.py | e3e53abe4500a17fb21380f27002396d514cc7d9 | [] | no_license | tifabi/allTheGiNeed | e106e92cb91d8f5cfca27d4de09dfc759f7cc311 | 8a5c8f92113938c7b84e4a9c3f70b770078293c6 | refs/heads/master | 2020-03-22T06:36:53.772508 | 2018-07-03T23:39:36 | 2018-07-03T23:39:36 | 139,646,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,149 | py | '''
Tiffany Fabianac Modified code from:
Reading GMAIL using Python
- https://github.com/abhishekchhibber/Gmail-Api-through-Python
- Abhishek Chhibber
'''
'''
This script does the following:
- Go to Gmal inbox
- Find and read all the Google Alert messages
- Extract details (Date, Snippet,URL) and expor... | [
"noreply@github.com"
] | noreply@github.com |
44f0a16cb6fcf836890a2a7383410fd334e0908d | e45c6f36a065b6a44e873a773428105de4d3758e | /bases/br_me_caged/code/caged_antigo/scpts/caged.py | 5a26195ed1c67ee805eb3133d1c765f73239f8c8 | [
"MIT"
] | permissive | basedosdados/mais | 080cef1de14376699ef65ba71297e40784410f12 | 2836c8cfad11c27191f7a8aca5ca26b94808c1da | refs/heads/master | 2023-09-05T20:55:27.351309 | 2023-09-02T03:21:02 | 2023-09-02T03:21:02 | 294,702,369 | 376 | 98 | MIT | 2023-08-30T21:17:28 | 2020-09-11T13:26:45 | SQL | UTF-8 | Python | false | false | 25,196 | py | """
Extract and clean CAGED data
"""
# pylint: disable=invalid-name,unnecessary-comprehension,import-error
import sys
import time
import os
import shutil
from contextlib import closing
from urllib import request
import pandas as pd
import numpy as np
import manipulation
sys.path.insert(0, "../")
def create_folder_s... | [
"noreply@github.com"
] | noreply@github.com |
cc5e512c40eeb3d7ecfa986f9e8245d9a2c05f43 | 48b2fd9da2b8c67b1d732dae445c21cd6d878504 | /warrior/test_WarriorCore/test_defects_driver.py | 37eaf27fccb5059193d351b85a125d7a5aa51870 | [
"Apache-2.0"
] | permissive | shubhendra-tomar/warriorframework_py3 | 6ca4f59cd44c2420c48c7ccab505ffdcc76820fd | fc268c610c429f5a60e5627c2405aa66036487dd | refs/heads/master | 2023-07-17T09:34:35.025678 | 2021-05-10T06:43:57 | 2021-05-10T06:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,423 | py | """
Copyright 2017, Fujitsu Network Communications, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | [
"venkatadhri.kotakonda@us.fujitsu.com"
] | venkatadhri.kotakonda@us.fujitsu.com |
878f1d4c667f843e3a31085b1d0d6aba7e6df757 | 3deaa908ee9bd781921f5581182b5537b6a340ea | /P2-plagiarism-detection/source_sklearn/train.py | 24656b134ac5337d07152183af799aa2c4706d5a | [
"MIT"
] | permissive | suryasanchez/machine-learning-engineer-nanodegree | b68372d73b59eb7cb5d0a11e9a55dca0e361bbd1 | 8bb4c7b1258dd1aad95011d9fcb25546ed9d9324 | refs/heads/master | 2020-12-27T20:53:33.373136 | 2020-03-29T03:31:21 | 2020-03-29T03:31:21 | 238,049,325 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | from __future__ import print_function
import argparse
import os
import pandas as pd
from sklearn.externals import joblib
## TODO: Import any additional libraries you need to define a model
from sklearn import svm
# Provided model load function
def model_fn(model_dir):
"""Load model from the model_dir. This is ... | [
"suryasanchez@outlook.com"
] | suryasanchez@outlook.com |
43c9fbe98cd91e26a7efe54a86ba1b5103909a08 | 328581c2430f061e379192dacefc0f272f3ef27a | /scifin/exceptions/exceptions.py | 3d5423cf70e34417429b357d0aede8f648625eec | [
"MIT"
] | permissive | sg48/SciFin | e6b70d03d86d4e44caf977b70981678a1c6ed7ce | e4e3d1a32e060c911e43d89df833b3ad078ba6df | refs/heads/master | 2023-03-20T03:49:23.190132 | 2020-10-17T07:29:10 | 2020-10-17T07:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Created on 2020/8/14
# This module is for storing built-in classes for exceptions.
class AccessError(Exception):
"""Raised when a file or url cannot be accessed."""
pass
class SamplingError(Exception):
"""Raised when the sampling of a time series is not uniform."""
pass
class ArgumentsError... | [
"fabien.nugier@googlemail.com"
] | fabien.nugier@googlemail.com |
7ea0060a4ae2c77bf6b62d6084705a5bd61a261b | ef458faffdf14ee518f479f0db0b19ba18e8596f | /send.py | ea5159063fbae4a59c92126919d8a6025dcc4520 | [] | no_license | shadowkernel/PyMailStress | eafc2fe87db25b60957ea3ab0fe35dd99b747e4c | 1dce4f066ea7f38ddbdc94b574b37a260fd19cc5 | refs/heads/master | 2021-01-10T04:20:00.086020 | 2013-03-05T06:30:49 | 2013-03-05T06:30:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Send mail script
# Author: Xiaoyang Li <hsiaoyonglee@gmail.com>
import smtplib
import time
import threading
import ConfigParser
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
config = ConfigParser.... | [
"Joe.Jeong@icloud.com"
] | Joe.Jeong@icloud.com |
f1143c5015ebcd88c7912f5c54bdc340466fa1fe | 2172a26b843ee1466d6c33e805335dadbd853ed4 | /p097.py | 3b11cf862ac80ce2d27fa3bf79ff3838bfa82801 | [] | no_license | stewSquared/project-euler | aca2b8a610954c7e0eb2cab90d48cbbca839ad4a | 9369b4a6b6d97b2baeb44e81424e4f2e0aa0f870 | refs/heads/master | 2020-12-30T11:03:35.004325 | 2018-01-31T06:36:57 | 2018-01-31T06:36:57 | 21,247,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from functools import reduce
from itertools import repeat
ans = reduce(lambda m, n: m*n % 10**10, repeat(2, 7830457), 28433) + 1
print(ans)
| [
"stewinsalot@gmail.com"
] | stewinsalot@gmail.com |
e077975f79cef8246e26e09b0c121db7baa3577b | 5256a2412950c9c9df5ee7e37fdf748f34e0ff1c | /tests/system/springboothystrixbeat.py | 296d59ade0581021a0d74c0a812ced19fdf9fd23 | [
"Apache-2.0"
] | permissive | defus/springboothystrixbeat | 8276abdd687c43aedfb0ebb788000ba28383cfa5 | a85f8c33789669a2773e77126cf139d1ece4561a | refs/heads/master | 2020-08-23T02:13:25.761545 | 2019-10-22T15:50:06 | 2019-10-22T15:50:06 | 216,521,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | import os
import sys
sys.path.append('../../vendor/github.com/elastic/beats/libbeat/tests/system')
from beat.beat import TestCase
class BaseTest(TestCase):
@classmethod
def setUpClass(self):
self.beat_name = "springboothystrixbeat"
self.beat_path = os.path.abspath(os.path.join(os.path.dirname... | [
"ldefokuate@octo.com"
] | ldefokuate@octo.com |
cdf6845bb895f5e4820d2059d293dc3b6e70ad83 | 58af4e8d6a41fd10d3e8d9a1e36e589729a50dd2 | /Networker.py | 85651068695f321012e4154402acfda8c31c39ce | [] | no_license | intrabit/blacklight | ff3087e8d58cb9f8857423fd13fabe3e75325bbd | 53397f709332a5fed3cfafd835d1c691d7ca68fa | refs/heads/master | 2020-12-30T09:58:30.844038 | 2019-09-05T19:41:21 | 2019-09-05T19:41:21 | 99,246,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | # Connects to webservers requesting page data.
# Written by Louis Kennedy
import gzip
import re
import ssl
import socket
import threading
import Settings as settings
def finddata(source):
lastfind = 0
current = 0
while current != -1:
lastfind = current
current = source.find(b"\r\n", lastfi... | [
"noreply@github.com"
] | noreply@github.com |
adaefc6cb4c5988401db3a5e39c183ad7f465be6 | d4d162ee2ff1fd68121ec237bf8d19107abc9ae8 | /Arsen_Osipyan/game_of_life/styles.py | 4216118276e7ebabc28f5a49f5f031c3e941ad36 | [] | no_license | droidroot1995/DAFE_Python_015 | 48e1571cebd27a6bd978e3020b878f699a54c92c | f6c739e3be40e7737a173e1fdf327e10c5ae0cab | refs/heads/main | 2023-03-05T14:47:51.014141 | 2020-12-17T17:54:53 | 2020-12-17T17:54:53 | 308,549,551 | 1 | 21 | null | 2021-02-23T18:29:47 | 2020-10-30T06:57:00 | Python | UTF-8 | Python | false | false | 1,169 | py | # Window styles
WINDOW_CSS = "background-color: #fff;" \
"font-family: Arial;" \
"text-transform: uppercase;" \
"font-weight: 800;"
# Buttons styles
BUTTON_CSS = "border-radius: 0.4em;" \
"font-size: 14px;" \
"color: #fff;" \
"border: 0;"
ST... | [
"arsenosipan02work@gmail.com"
] | arsenosipan02work@gmail.com |
0083e93218f93976537335daf228c1432b37276d | 0f2b51f85685b8f165b05854bf657f918bafb976 | /NER_train_predict/bert.py | 9a396b7af665652b701661bde9f5ce664a9986f1 | [] | no_license | Zenodia/NLP_Bert_Pytorch_NER_task | dfade7086fb2a2ae101db43f13d551e56a5cbe24 | 087efbb86dd0e84203dd07a507551caa23689f3a | refs/heads/master | 2022-12-14T21:13:04.091027 | 2020-09-16T11:46:59 | 2020-09-16T11:46:59 | 296,013,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,560 | py | """BERT NER Inference."""
from __future__ import absolute_import, division, print_function
import json
import os
import torch
import torch.nn.functional as F
from nltk import word_tokenize
from pytorch_transformers import (BertConfig, BertForTokenClassification,
BertTokenizer)
cla... | [
"noreply@github.com"
] | noreply@github.com |
16d37fe91e6e6174ecc5ebf06d10063687980ee8 | 97e54e4b18c1d696926678f1e320b2fc9cef5436 | /jaraco/text/strip-prefix.py | 761717a9b9e1f837eeacf0e888822f6fad881361 | [
"MIT"
] | permissive | jaraco/jaraco.text | 8ff2d7d49b3af0ca5e98c1cb337562bde9d3ba72 | 460dc329b799b88adb32ea95435d3a9e03cbdc00 | refs/heads/main | 2023-09-04T06:57:23.624303 | 2023-07-30T01:01:42 | 2023-07-30T01:01:42 | 48,551,451 | 15 | 8 | MIT | 2023-07-30T14:52:20 | 2015-12-24T17:20:06 | Python | UTF-8 | Python | false | false | 412 | py | import sys
import autocommand
from jaraco.text import Stripper
def strip_prefix():
r"""
Strip any common prefix from stdin.
>>> import io, pytest
>>> getfixture('monkeypatch').setattr('sys.stdin', io.StringIO('abcdef\nabc123'))
>>> strip_prefix()
def
123
"""
sys.stdout.writeline... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
dc72573a696b1184ae2cf899bda0ecd956d49f9d | 0931b32140ba932b3ba02f5109a087c6c70a244d | /frappe/desk/desk_page.py | fc7281e06c18d9766c2efcb8f939fa6938c5c494 | [
"MIT"
] | permissive | cstkyrilos/frappe | b60ed4e95ce929c74c2fc46000080d10b343190e | 27d9306bc5924c11c2749503454cc6d11a8cc654 | refs/heads/main | 2023-03-23T10:35:42.732385 | 2021-03-22T21:55:58 | 2021-03-22T21:55:58 | 350,292,784 | 0 | 0 | MIT | 2021-03-22T10:01:08 | 2021-03-22T10:01:07 | null | UTF-8 | Python | false | false | 1,569 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.translate import send_translations
@frappe.whitelist()
def get(name):
"""
Return the :term:`doclist` of the `Page` specified by `name`
"""
page =... | [
"cst.kyrilos@gmail.com"
] | cst.kyrilos@gmail.com |
91ea1c1fcfcc6577bf717c2abd059bc968643776 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/pyglet/libs/darwin/cocoapy/runtime.py | b692ce130d04d7d7af0a3e1daa11e437a71c142c | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 51,751 | py | # objective-ctypes
#
# Copyright (c) 2011, Phillip Nguyen
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list o... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
a84a107c0e275202b4cbb1b877c37f3825b42b1d | 36cf4465f576b2a7a2648f71177333c199f84796 | /src/analysis/document_similarities.py | 6b92aa2c2afefd204b3c88ea62f38dba55efd079 | [] | no_license | stevenrouk/evolution-of-machine-learning | d0cd5f6535db876f97445d04a3ad78db27a82f03 | 3be74301ce425377ec7a2e7aeffb35a1764225ff | refs/heads/master | 2023-02-20T08:37:32.932015 | 2022-08-10T22:14:10 | 2022-08-10T22:14:10 | 215,085,244 | 2 | 1 | null | 2023-02-15T22:58:25 | 2019-10-14T15:54:48 | Jupyter Notebook | UTF-8 | Python | false | false | 353 | py | import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
def get_similar_doc_idxs_to_loadings(loadings, W):
sims = cosine_similarity(loadings, W)[0]
return np.argsort(sims)[::-1]
def get_similar_doc_idxs_to_tfidf(tfidf_vec, all_docs):
sims = cosine_similarity(tfidf_vec, all_docs)[0]
... | [
"stevenrouk@gmail.com"
] | stevenrouk@gmail.com |
5fa9d6c34be022eb700f187f8a95d6366b9ee254 | a5ae57b44064e6bb2fa17b5e7a8e551ec278345f | /src/core/runtime/control_structure/block.py | 00143a8d061be0bc1fd9baa0369f77e4f6ebaa9d | [
"MIT"
] | permissive | thomasmf/nomenine | 5cfc06ecfbacd73938b3ab0c52a2ebd3a0349faf | ead48185b150fdc07a5019499511f696c5326d45 | refs/heads/master | 2021-01-10T02:35:06.465381 | 2015-11-11T10:00:57 | 2015-11-11T10:00:57 | 44,127,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py |
TEST( """ with ( function x1 [ . 40 ] ) [ x1 ] == 40 """ )
TEST( """ let x1 30 [ x1 * 10 ] == 300 """ )
TEST( """ use [ [ definition x 387 ] [ definition y 4123 ] [ function f [ x + 1000 ] ] ] [ f * ( y ) ] == 5718601 """ )
TEST( """ use [ [ definition TestFactory ( factory ( Integer ) [ : that + 10000 ] ) ] [ fun... | [
"thomas@metatools.org"
] | thomas@metatools.org |
e78a07d5a9ac0d6375bab50be733a669fac273ff | e5b6d2e79d6593587fa8f5854def9ebf4d47a9e1 | /djangocli/wsgi.py | 8e9c0ba06187289fb8d23d2abffc8b6bcf5721d6 | [] | no_license | redeyed-archive/DjangoSiteCheckerExample | 35756664f0b9667e151d4608c6ebd5d279523534 | e53b2fad15d2a768e75bc853c69113c0d54c2ed2 | refs/heads/master | 2023-03-17T06:22:46.129989 | 2019-02-17T05:48:43 | 2019-02-17T05:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for djangocli project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
39b0fd52bc50bd9b15dfb1bcdb7536b39cdacdc5 | 0abb03d472094ea9c2b3c672cba53b4d603b19dd | /ansible/plugins/modules/test1.py | de2bace0bbbea56e32b1bc8d2ecdb1939c8aaca0 | [
"Unlicense"
] | permissive | mamercad/sandbox | 29502faa7f7b5bdbb17bcf87fae7ec0a0cefa568 | 2e69094452a7e2ecbf6500bb658c94fbaba2395b | refs/heads/main | 2023-08-21T21:09:03.867299 | 2023-05-22T18:57:27 | 2023-05-22T18:57:27 | 280,487,343 | 0 | 0 | Unlicense | 2023-05-22T18:52:03 | 2020-07-17T17:35:17 | Python | UTF-8 | Python | false | false | 21 | py | test1
test
test
test
| [
"mamercad@gmail.com"
] | mamercad@gmail.com |
3d26d362ff03dbd5bd9189d208e4bcad515f2f2a | e5d04f7f5e67e186dcb78a256341c3ab3afe796d | /twidder/helper.py | 44cc176fb3c2a497f691b2e0e481b8ebcb5bf55b | [] | no_license | bavaria95/twidder | c7ce456d1dd6b4713553608534cd2d19b7f3b168 | 496ed5c2324ab07db36f4f3cfe22ef4dd471d37c | refs/heads/master | 2016-08-11T21:58:01.284283 | 2016-03-08T00:16:08 | 2016-03-08T00:16:08 | 51,746,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,325 | py | import os
import binascii
import json
import database_helper
import random
import hmac
import hashlib
import time
from flask_sockets import Sockets
# implementing Diffie-Hellman key exchange algorithm
# generator
g = 3
# divider
p = 17
def log(msg):
f = open('log.txt', 'a')
f.write(str(msg) + '\n')
f.cl... | [
"bavaria95@gmail.com"
] | bavaria95@gmail.com |
12bde3b49a3da09feeaeba0f56b55e4a8f07c0de | 47d5fe99e3cb28d3e0aed9564b774889d3a3d1cc | /ask/ask/urls.py | 2f115fd2b1d7167cb3452f53e1af2107688aaaff | [] | no_license | EgrethName/Web | 5a19999342dcfba445ba1b4b963c2c01e283b2bd | 928dc006f8155e28cc16ef490d47a671053d7c27 | refs/heads/master | 2023-04-14T16:34:34.856734 | 2021-04-28T12:37:56 | 2021-04-28T12:37:56 | 327,976,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | """ask URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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 vie... | [
"egreth@mail.ru"
] | egreth@mail.ru |
1f009db8fd1167365c68a8e8ac41c0e88857d046 | c219339c6f1818685cccd71a9ca88ecf0d9bfcf2 | /Module 8/demo22ex3/demo22ex3.py | 01743c4aa432d1b030ee9fc40f872bda5bbc2885 | [] | no_license | UmeshDeshmukh/DSP_Lab_ECE-GY_6183 | fc2b01e2a65ae16c243f7f747072ffaec689e179 | 7ad7988fcf7ac947dcb8a90c148938be008d7021 | refs/heads/main | 2023-05-08T17:05:44.054708 | 2021-06-02T04:34:25 | 2021-06-02T04:34:25 | 334,494,205 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | # find_blue_in_image.py
# Detect pixels similar to a prescribed color.
# This can be done usg HSV color space.
import cv2
import numpy as np
img = cv2.imread('input_image.jpg', 1)
# 1 : import image in color
# Convert to different color space
img_hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
print(type(img_hsv))
p... | [
"noreply@github.com"
] | noreply@github.com |
36c646e5fe820af4bb83f2371e13d24460aa2f1f | 29bae218ba2662d8c700b48f7f256298de08d9f2 | /env/bin/f2py | 493f3036cc4786365a324ee6baf2959080e2f80a | [] | no_license | bradyb/deepgraminterview | c4986cb9ff090eb89a119b61faab4845d24ca7c0 | f48a4c5a17ca62195656e5839f4e8b60e33d4cdc | refs/heads/main | 2023-07-05T05:47:37.931140 | 2021-08-11T06:00:55 | 2021-08-11T06:00:55 | 394,879,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/home/turist/interviews/deepgram/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"brady.ben12@gmail.com"
] | brady.ben12@gmail.com | |
2b3a01df19d821d47f7af67c938295d1d18bcc2e | 28922bb1e78165a6d6fd02a45eca4acbdf202cab | /0x0F-python-object_relational_mapping/relationship_state.py | 740f17ebad5cdfa3478b85d68f147f312fe9a214 | [] | no_license | dalejoroc11/holbertonschool-higher_level_programming | 03d261a59971421b42fc0def730cc43ad478d2cb | e3195595f3237df4f0f8f519888927f07e86d959 | refs/heads/master | 2022-12-23T13:32:21.378580 | 2020-09-23T00:30:09 | 2020-09-23T00:30:09 | 259,437,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | #!/usr/bin/python3
# Class definition of a State and an instance relationship
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from relationship_city import Base, City
class State(Base):
"""Represents a state for databa... | [
"diegorojas279@hotmail.com"
] | diegorojas279@hotmail.com |
303f9eed263c05da330921097549a5347a38de5e | 7f9f44689af2d52b4bc0384f934d74ce86fe7deb | /src/magic1.py | 7a18fd8bc1f41e7470ac0d05aaf44be6dfa5e52e | [] | no_license | Nuked88/excbot | af94c8f16e145288e7d5b812d2f15bc7d9c0acce | 9b3b70a345c3dba396d3f92bfabebec2fe70c516 | refs/heads/master | 2021-05-11T00:56:25.097351 | 2018-02-11T15:54:54 | 2018-02-11T15:54:54 | 118,316,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,283 | py | from __future__ import division
from itertools import count
import matplotlib.pyplot as plt
from numpy import linspace, loadtxt, ones, convolve
import numpy as np
import pandas as pd
import collections
from random import randint
from matplotlib import style
import pymongo
from pymongo import MongoClient
from pprint imp... | [
"nuked8@gmail.com"
] | nuked8@gmail.com |
1613cc4678e8069425e88c9c92f2e3f813b95770 | 7e3fbcd8c130c5f98e45f20cfebee1d4d9531503 | /SERE/catalogos/urls.py | 6ff633552962a16b06c656edb6ff70d2deff891e | [] | no_license | hmachuca22/sere | 3653cc17a9fe8814b0733af6af364bb7e43169ae | ae318004729bb76277422d264a4fef6cdb108daa | refs/heads/master | 2020-11-25T16:45:29.576663 | 2019-12-20T00:53:49 | 2019-12-20T00:53:49 | 228,761,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | from django.urls import path
from catalogos.views import CategoriaView
from catalogos.views import CategoriaNew
from catalogos.views import CategoriaEdit
from catalogos.views import CategoriaDel
from catalogos.views import ProductoViewSINREGISTRO,ProductoNewSINREGISTRO,ProductoViewINTERNOS,ProductoNewINTERNOS,Producto... | [
"hmachuca19@gmail.com"
] | hmachuca19@gmail.com |
6a62b0983738172fa91c493cf2ac540bc6800c3f | 5df58c0a5796092d621486bc42b0754daac9d36f | /flashcardproject/flashcardapp/tests.py | 92868e1695605be05d35615c9f21b7479931b497 | [] | no_license | mcnguyenvn/Flashcard_team02 | 4af7fc4de825461daffc501d07fd28e0a4a25263 | fcfd0dc9e4ab6d1da7f876ccc1197dca92254280 | refs/heads/master | 2022-09-18T20:59:12.736488 | 2012-05-22T01:39:32 | 2012-05-22T01:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from django.test import TestCase
from django.test.client import Client
class UserFunctionTest(TestCase):
def setUp(self):
self.client = Client()
def test_creatingflashcard(self):
response = self.client.login(username='demo', password='123456')
self.assertTrue(response)
data = {... | [
"cuongnm92@hotmail.com.vn"
] | cuongnm92@hotmail.com.vn |
be751f1b34a9337ee7ddbdecf8faf42c9f798399 | 09445ee10edc71baf61c0e286e7a79531fb76ba0 | /main.py | a1c4a1a93221990ed28908ebd856b9136e778957 | [] | no_license | yonkshi/master_thesis | e8d40fc0bd41d937946406bd9d4073bdffcaa05b | 0309061e7b3770b669adf15031ad76a672e2c1e6 | refs/heads/master | 2020-04-24T15:33:31.187952 | 2019-03-29T13:24:05 | 2019-03-29T13:24:05 | 172,072,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,577 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
import random
import os
import datetime
from scipy.misc import imsave
from model import VAE
from data_manager import DataManager
tf.app.flags... | [
"nopctoday@gmail.com"
] | nopctoday@gmail.com |
97b2511118f4f47bd460d91c403d4e82b77fff9f | 316fef235cb8e446ea29f226418f0e9a79f2b2fa | /convex_hull/1405075_PlotScript.py | be4ac1ed76b699319c64322aa0eec8beceacc6f1 | [] | no_license | azmainadel/computational-geometry | a4a88719075bdb7759cf1cd3b3e94055cb316bc8 | ab0ef74d0d9557ca7f9dcfed82047d2ba421e032 | refs/heads/master | 2023-08-28T07:30:42.076334 | 2023-08-09T04:31:06 | 2023-08-09T04:31:06 | 253,682,150 | 3 | 1 | null | 2020-04-08T06:03:30 | 2020-04-07T03:56:39 | C++ | UTF-8 | Python | false | false | 602 | py | import matplotlib.pyplot as plt
p = []
q = []
with open('1405075_input1.txt') as f2:
next(f2)
for line in f2:
xC, yC = line.split()
p.append(xC)
q.append(yC)
fig = plt.figure()
ax = fig.add_subplot(111)
plt.scatter(p, q, s=10, c='r')
for xy in zip(p,q):
ax.annotate... | [
"azmainadel47@gmail.com"
] | azmainadel47@gmail.com |
5e32aa296d6c958b4c340ef0e125637e341d4fdf | 25e48619b6157be79a0cb3051f7b59af4e7a48bb | /main_name.py | 8d6bc8217700cfdc49b3b936482e765111907e08 | [] | no_license | Nana-Antwi/UVM-CS-21 | 8fdb2125f01820f063e7a2b3e40c4a0b3bd64c73 | 535b8e7efb61a0e4071766b4986e5d9b97952456 | refs/heads/master | 2020-04-17T09:29:27.027534 | 2019-01-18T19:19:18 | 2019-01-18T19:19:18 | 166,459,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #program that display personal information
def main():
print_my_name()
#function
def print_my_name():
print('Nana')
main():
| [
"noreply@github.com"
] | noreply@github.com |
2bc4f1ab2384a7e76f74641976a53715c495cc2a | b0c528e2650dec1ff011215537fc5ea536627966 | /main/urls.py | 58a80f586c83f786718a9f83bb105e9b11210f7e | [] | no_license | trinhgliedt/Python_Great_number_game | 9cb84a1bd95333df15140cc2e1c466d0911b7b19 | 8358c84012981b8dfaafb9017fc9a92450a98e7b | refs/heads/master | 2023-02-08T21:14:23.124896 | 2021-01-01T06:18:02 | 2021-01-01T06:18:02 | 325,926,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('result/', views.process_form),
] | [
"chuot2008@gmail.com"
] | chuot2008@gmail.com |
e8da4fa3f3886a0e95df838344b3c25934dc0c78 | 9d87541ce623eeb1a82987c62d8ddb293b21ecdf | /groups/migrations/0001_initial.py | 764aa2174250e12c8c9337223696ff50aea2e2b0 | [] | no_license | rajasbhadke/code.fun.do | 24e76785a2689d28b84b0b188346a39ba3b12834 | c61b5e5d6c6ed251d597e8df1c3e336c3f55a662 | refs/heads/master | 2021-09-19T05:58:32.543269 | 2018-07-24T06:01:11 | 2018-07-24T06:01:11 | 107,448,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-10-20 13:00
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"rajasbhadke@gmail.com"
] | rajasbhadke@gmail.com |
96e52d0093401f85706495e10a173ccc42cff38e | 10571744731d20bbb463ae0559e1e5462319c2c3 | /ModelTesting/venv/Scripts/easy_install-3.7-script.py | 6e487f8ffbc499a22648a2dd081ce0e8a45cc5cd | [] | no_license | monsadan/MachineLearning | 6731c7a88e886525e31d47bc4e52e827f87af69a | c5d4eceb099a467cb5ae3bac6d039b9b4ccc2aff | refs/heads/master | 2022-11-05T23:15:08.634848 | 2020-08-26T22:57:01 | 2020-08-26T22:57:01 | 246,444,686 | 0 | 1 | null | 2022-10-06T19:11:06 | 2020-03-11T01:18:46 | null | UTF-8 | Python | false | false | 480 | py | #!C:\Users\dmmpc\Documents\GitHub\MachineLearning\ModelTesting\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = ... | [
"54322798+monsadan@users.noreply.github.com"
] | 54322798+monsadan@users.noreply.github.com |
e5e0ff738ca6d3556fc24b219daa7846f1e584f6 | e4d532362315fa21e9d403a5e04f27c5046c95cc | /app/core/migrations/0001_initial.py | 5c306375b4d4a859034f1000c1a32bcbe51eee15 | [
"MIT"
] | permissive | yvsreenivas/recipe-app-api | 722055d0abcd07a63f483c38ba6a3a419d55721e | 84c68edcbbc4060255589ea7666df76eed5fad53 | refs/heads/main | 2023-01-23T17:42:24.686340 | 2020-11-27T11:43:50 | 2020-11-27T11:43:50 | 297,965,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | # Generated by Django 2.1.15 on 2020-11-26 09:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"yvsreenivas@yahoo.co.in"
] | yvsreenivas@yahoo.co.in |
f67df4a1e6f69b4ed8c0be1156e7f043268c888d | 5cf49cea129b36e7999bb5eed4a79a539dbc622c | /app/user/serializers.py | cd3b85465de2c1b98571250680297d34ea0c8124 | [
"MIT"
] | permissive | mydjangoprojects/recipe-app-api | 449674317f72b760b33d4e2bfc934b123b0c904b | 95f402e825b3bd22d1f2c63bf3de113e8c9044d7 | refs/heads/master | 2020-04-29T03:22:17.678663 | 2019-05-01T13:09:35 | 2019-05-01T13:09:35 | 175,806,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,696 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _
from rest_auth.registration.serializers import \
RegisterSerializer as BaseRegisterSerializer
from rest_auth.serializers import LoginSerializer as BaseLoginSerializer
from allauth.account import ap... | [
"psykepro@abv.bg"
] | psykepro@abv.bg |
5b2b9b5810a6117b1af4440eda79ec7c15ae4f0b | c537ab4ad9769454c3bc894ae56e650ce74e96a3 | /lesson_07/code/06.文件的读取.py | 466343210c431990d28681bba33847f92b12a646 | [] | no_license | ZhouYao0627/course_python | f8b940ddf0b71c0d62b8e6f13121b7bd1de8a11b | 8236a3e431d45fd8353c55c181b5d9f84b9d4757 | refs/heads/master | 2023-08-15T06:22:15.325444 | 2021-10-01T08:38:27 | 2021-10-01T08:38:27 | 412,095,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | file_name = 'demo2 .txt'
try:
with open(file_name) as file_obj:
# 如果直接调用read()他会将文本文件的所有内容全部都读出来
# 对于较大的文件,不要直接调用read()
# help(file_obj.read())
# read()可以接受一个size作为参数,该参数用来指定要读取的字符的数量
# 默认值是-1,它会读取文件中的所有字符
# 可以为size指定一个值,这样read()会读取指定数量的字符
# 每一次的读取都是从上一次读取... | [
"1607435943@qq.com"
] | 1607435943@qq.com |
f77c214c3496e3927ac4f3539fc029b10bbe7302 | f6c41523b1f03f447a0ace4fd01ddf9d5ba85a24 | /getCountriesbyRegion.py | 1f5d81a6df742fab4ba97a8288ab2ecf7eda9c18 | [] | no_license | AdroitAnandAI/Automated-Reasoning-with-ML-Knowledge-Graph-and-Machine-Comprehension-with-AI | cc39d75c99700ace3fd0f94d97665547b57dc947 | 252448c9885e1d47daa30aec7113fa732326e03a | refs/heads/main | 2023-01-03T04:38:21.228788 | 2020-10-18T07:26:33 | 2020-10-18T07:26:33 | 305,045,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from grakn.client import GraknClient
with GraknClient(uri="localhost:48555") as client:
with client.session(keyspace = "globe") as session:
with session.transaction().read() as transaction:
query = [
'match $country isa country, has countryname $cname,' +
' has i... | [
"noreply@github.com"
] | noreply@github.com |
01b2b94a2a0eedae0205ccea536b5edd468b7316 | 2ab6afdcc194efa65f6122ff4eb9c32843d1611b | /visualize.py | 6b7464a64706b0353a58e9255d1fb255955b8f9d | [] | no_license | liuliuOD/Data-Visualization | 641b98d8bffc98ee6a6ed010309ee9b752081dcf | ed8e20a61f1105ea2513a17bfd592c153daf9e7a | refs/heads/master | 2020-05-17T14:36:42.355886 | 2019-04-28T00:57:14 | 2019-04-28T00:57:14 | 183,768,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import matplotlib.pyplot as plt
class visualize () :
# def __init__ (self) :
def scatter (self, x, y, color = 'g', marker = 'o', size = 8) :
plt.scatter(x, y, c = color, marker = marker, s = size)
return self
# def plot (self, x, y, color = 'g') :
# plt.plot(x,... | [
"liuliugit@gmail.com"
] | liuliugit@gmail.com |
2e8acef5d561c60f976847083658fb070708a1dd | c18ee10367a6b8bd3efa20d3e5f1345f8a065a73 | /hw2/code/src/regression.py | 4ec54b283222b2d08f8387ee925f81550a819ae6 | [] | no_license | michaelwu756/CSM146 | 9f6bf604a20b20483d268a9ec2dfbb21731d2d4e | 46599acfa792e9dc68f40b956b7583c6f23c623b | refs/heads/master | 2021-05-12T03:33:56.246498 | 2018-03-16T11:40:02 | 2018-03-16T11:40:02 | 117,620,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,292 | py | #!/usr/bin/python
# This code was adapted from course material by Jenna Wiens (UMichigan).
# python libraries
import os
import math
# numpy libraries
import numpy as np
# matplotlib libraries
import matplotlib.pyplot as plt
######################################################################
# classes
###########... | [
"cheeserules43@gmail.com"
] | cheeserules43@gmail.com |
270280b5e47a20fdb3e29373151542e0bac4ad1e | a1f63894e73369a4649be4cc792c407b671f9547 | /src/brown_drivers/irobot_create_2_1/src/irobot_create_2_1/srv/_Dock.py | 86383b2435da8ebdf3092f8c38b5a4851722a6f1 | [] | no_license | parksj92/rosie | 5b21329a4d14f2e21cebd71f85bae154d714ff6f | 8f8b70a2cdb351c9a8ae1dbcfd8e9f242c1c7e03 | refs/heads/master | 2020-06-04T12:55:28.007459 | 2015-05-06T19:57:54 | 2015-05-06T19:57:54 | 31,720,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,149 | py | """autogenerated by genpy from irobot_create_2_1/DockRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class DockRequest(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf8427e"
_type = "irobot_create_2_1/DockRequest"
_has_header = Fa... | [
"rbtying@aeturnalus.com"
] | rbtying@aeturnalus.com |
4c557ef7d1519e016f479c44b7cdfb3e045d59ab | 3681d5b2786f60dafdcac95fb2421307c0a59975 | /blogapp/blog/admin.py | 517dec69d08d243e68cb9ca116bd59ade671195f | [] | no_license | conectabell/Django_SimpleBlog | 45cd4e43bec87a4c435a7345618ca28a419149db | 498f5b5432ffc15be5adbd7b053ce92023430101 | refs/heads/master | 2021-01-09T05:53:30.002624 | 2017-04-23T23:32:47 | 2017-04-23T23:32:47 | 80,858,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from django.contrib import admin
#from django.db import models
from .models import Post
#admin.site.register(Rules, RulesAdmin)
admin.site.register(Post)
| [
"conectabell@gmail.com"
] | conectabell@gmail.com |
c118f02e997f6b98c12d016a62028a6e2795e9da | 30606e113697002f7a2a44a315d44796b428b944 | /src/neural_net_tests.py | 0ff0b44abfd150bcefd8474fe40e2fad66248ab6 | [
"MIT"
] | permissive | EoinM95/FYP | 2d0ac824e921bf45a502bbaba964a29c4be8a714 | 8b3bb73a0776dc65a8b577867d6a1d2f369fc7c5 | refs/heads/master | 2021-01-11T07:58:08.640167 | 2017-03-30T14:59:57 | 2017-03-30T14:59:57 | 72,131,784 | 1 | 0 | null | 2017-02-22T18:39:50 | 2016-10-27T17:27:49 | Python | UTF-8 | Python | false | false | 1,274 | py | """Tests for NeuralNetwork class"""
import unittest
import numpy as np
from neural_net import NeuralNetwork
class NeuralNetworkTests(unittest.TestCase):
"""Tests for NeuralNetwork class"""
def test_xor_gate(self):
"""Simulate XOR gate and ensure working"""
inputs = [[1.0, 1.0],
... | [
"murphe43@tcd.ie"
] | murphe43@tcd.ie |
39d52659f57b9560c8b853368de4c568f3f77ca1 | 757d26801d42764be6d5368a5dbbe175f3ceeef4 | /venv/bin/mailmail | dcbd886bccad5d70e80dc0583034fcc2b0744ac4 | [] | no_license | luyuehm/scrapy_v1 | d1265eaad7836348be5911c06556ed23340d6de9 | 69da04ccfea06822f6bcd74f3abc3a44daabd300 | refs/heads/master | 2023-03-15T04:10:34.668307 | 2021-03-07T08:58:53 | 2021-03-07T08:58:53 | 346,115,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | #!/Users/macbook/PycharmProjects/scrapy_v1/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from twisted.mail.scripts.mailmail import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"macbook@macbookdeMacBook-Pro.local"
] | macbook@macbookdeMacBook-Pro.local | |
edf40036c2140cfcdf728abbeb3fcfcbf0fdae99 | caf8d5ee09ef4412cd0c14b6a479714e50c68c1e | /small.py | 3fbd8ffd9d98384e49ed26d60a07560960e4f135 | [
"MIT"
] | permissive | victorShawFan/distill_BERT_into_RNN-CNN | 0dde6e89c8df5d8a9edf74aa528448d6f3214494 | 0ecbb033d229a2cc4f611964fd249a8eafdd710f | refs/heads/main | 2023-05-24T03:32:24.500902 | 2021-06-13T09:30:49 | 2021-06-13T09:30:49 | 377,155,136 | 1 | 0 | MIT | 2021-06-15T12:28:51 | 2021-06-15T12:28:50 | null | UTF-8 | Python | false | false | 4,352 | py | import torch, numpy as np
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.autograd import Variable
from keras.preprocessing import sequence
from utils import load_data
USE_CUDA = torch.cuda.is_available()
if USE_CUDA: torch.cuda.set_device(0)
LTensor = torch.cuda.LongTensor... | [
"luxuantao@126.com"
] | luxuantao@126.com |
83f87eada15ab8d5a659a10f018b7e6ffd3ba2ef | ca68dec0fa417f3276454cc27ed30066246947da | /stats.py | b250261d121b5c0d88c8c0fb2e7a03a2fa7cad1c | [] | no_license | jpanag1213/Project_stock | 0f431c6c83102957fe2617222c546c73a74435a7 | cbad6729850869d5fa53aab85f9812eebdfc5cad | refs/heads/master | 2020-04-19T08:59:24.160458 | 2019-04-11T08:15:34 | 2019-04-11T08:15:34 | 168,096,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82,142 | py | # -*- coding: utf-8 -*-
"""
Created on 2019-02-23
to stats the order imbalance feature
#导出日线数据
@author: jiaxiong
"""
import numpy as np
import Data
import SignalTester
import pandas as pd
import os
import configparser
import time
from Utils import *
import matplotlib.pyplot as plt
import datetime
from numba import j... | [
"jpanag@163.com"
] | jpanag@163.com |
a554fe02fd9428bee0aa30e20f5fc252b6d25627 | d4f19cbcd4179b84069dcc588edc970fe30909c0 | /supervisors_commands/add_user.py | 707ed49ad48becef19fc21862d2dd4ffd959cd35 | [] | no_license | chypppre/opvs_bot | d77d7aa1d104d51fcc9d53e22207dfbaa1332d32 | e6e1c784d32747ff98d783cd60b6ac6f1155cf44 | refs/heads/master | 2020-09-14T12:30:52.774310 | 2019-12-02T09:40:33 | 2019-12-02T09:40:33 | 222,877,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,334 | py | import sqlite3
from telebot import types
from misc import DB_DIR, CHATS_ID
def add_to_tempo(uid, last_name, first_name, department):
"""Добавить во временную таблицу в БД"""
db = sqlite3.connect(DB_DIR)
cursor = db.cursor()
check_sql = "SELECT uid FROM tempo WHERE uid={}".format(uid)
... | [
"noreply@github.com"
] | noreply@github.com |
c9ee8812a25fefe8c101523fb066299ab9ab3dd6 | 92c8737a6c4b967fd43885b97626ef25deb3e983 | /Burgers/burgers.py | f2feb0fa28ccaed55811dd23b18373c044983697 | [] | no_license | JMLipsmeyer/SA-PINNs | 42d53ffc3c3383dd6bbaea113303696e65348ea5 | a180801354e7db02bdda41f9c433008387a1c2f7 | refs/heads/master | 2022-12-27T18:45:35.179715 | 2020-10-12T18:51:08 | 2020-10-12T18:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,219 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import time
import scipy.io
import math
import matplotlib.gridspec as gridspec
from plotting import newfig
from mpl_toolkits.axes_grid1 import make_axes_locatable
from tensorflow import keras
from tensorflow.keras.models import Sequential
from t... | [
"levimcclenny@tamu.edu"
] | levimcclenny@tamu.edu |
c9a91552c1b8f4b8a2ff609676b81cd11cf08ead | 48df99f4358be7a51becd3d685e1ec825d295ba4 | /dentalstate/models.py | 36c642462ac4cabb367d2fe592fdd0be94d557a6 | [
"Apache-2.0"
] | permissive | kuyesu/tscharts | 21d2aedeea4aad3b126defaa1703f60f44f14de6 | 9ed4e4bb0a6d296e1156afca5b55d0f71dfb894b | refs/heads/master | 2023-06-03T04:50:15.282855 | 2021-06-12T19:50:51 | 2021-06-12T19:50:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | #(C) Copyright Syd Logan 2020
#(C) Copyright Thousand Smiles Foundation 2020
#
#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... | [
"slogan621@gmail.com"
] | slogan621@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.