seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;
using CoreTweet.Core;
namespace CoreTweet.Rest
{
partial class Users
{
//GET Methods
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path('employee/', views.employee_list, name='employee_list'),
path('employee/add/', views.employee_add, name='employee_add'),
path('employee/<int:pk>/', views.EmployeeDetailView.as_view(), name='employee_view'),
path('employee/<int:pk>/edit/', views.employee_edit, name='employee_edit'),
path('employee/<int:pk>/history/', views.EmployeeHistoryList.as_view(), name='employee_history'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jPanel2 = new javax.swing.JPanel();
jScrollPane3 = new javax.swing.JScrollPane();
jTextArea2 = new javax.swing.JTextArea();
setLayout(new java.awt.BorderLayout());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(event["event_short"], "lake")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"unique_id": "a",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Struct.Uint32('sizeOfInfoHeader'),
Struct.Uint32('imageWidth'),
Struct.Uint32('imageHeight'),
Struct.Uint16('planes'),
Struct.Uint16('bitsPerPixel'),
Struct.Uint32('compression'),
Struct.Uint32('bitmapDataSize'),
Struct.Uint32('xPixelsPerMeter'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "设置tag为:"$tagls
git tag $tag
git push -v origin refs/tags/$tag
echo "--------End--------"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x = z + 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package id.ac.unipma.pmb.ui.input.track;
import id.ac.unipma.pmb.ui.base.MvpView;
public interface InputTrackView extends MvpView {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.monkeyk.os.service.dto.ClientDetailsListDto;
/**
* 2016/6/8
*
* @author <NAME>
*/
public interface ClientDetailsService {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
impl Compiler {
pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def png_to_x11_artifacts(name):
png_to_xpm(name)
xpm_to_ppm(name)
ppm_to_mask(name)
ppm_to_xpm(name + "_mask")
xpm_to_xbm(name + "_mask")
png_mirror(name)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# setup.cfg
pkg_resources.require('setuptools>=39.2')
setuptools.setup() | ise-uiuc/Magicoder-OSS-Instruct-75K |
def give_item(self):
pass
def take_item(self):
pass
def attack(self):
pass
def defend(self):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.output_file_prefix = output_file_prefix \
if output_file_prefix is not None \
else 'feature_{}_{}_{}_distance'.format(
self.category, self.dependent_name_,
self.radius_type.replace('_radius', '') if '_radius' in self.radius_type else self.radius_type)
self.stat_ops = stat_ops if stat_ops != 'all' \
else ['sum', 'mean', 'std', 'min', 'max']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Условие
Дано действительное положительное число a и целоe число n.
Вычислите a^n. Решение оформите в виде функции power(a, n).
Стандартной функцией возведения в степень пользоваться нельзя.
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break
if (a%5 != 0):
a = a - 3
sum = sum + 1
else:
sum = sum + int(a/5)
a = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/env python
"""Drop and create a new database with schema."""
from sqlalchemy_utils.functions import database_exists, create_database, drop_database
from flunkybot.db import engine, base
from flunkybot.models import * # noqa
db_url = engine.url
if database_exists(db_url):
drop_database(db_url)
create_database(db_url)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (annotation != null) {
String annotationName = annotation.getQualifiedName();
if (ENUM_SOURCE.equals(annotationName) && annotation.getAttributes().size() == 1) {
return true;
}
}
return false;
});
}
return false;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
AssociativeArray result = validationData.iterator().next().getYPredictedProbabilities();
for(Map.Entry<Object, Object> entry : result.entrySet()) {
assertEquals(expResult.get(entry.getKey()), TypeInference.toDouble(entry.getValue()), Constants.DOUBLE_ACCURACY_HIGH);
}
assertEquals(vm.getRMSE(), 0.7184568473420477, Constants.DOUBLE_ACCURACY_HIGH);
instance.delete();
trainingData.delete();
validationData.delete();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"<EMAIL>",
"2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
"$2b$12$tufn64/0gSIAdprqBrRzC.",
"fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
2,
)
@pytest.fixture
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if choice_cell.parent_cell.display_type is list:
# set the value of the parent to be the value of the child (single select)
choice_cell.parent_cell.settings_value = choice_cell.display_value
for ln_subcell in choice_cell.parent_cell.child_cells:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
/// @brief Used by PlatformIO for CombinedSignals based on a
/// difference between two signals.
class DifferenceCombinedSignal : public CombinedSignal
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"4_hour_ahead_power", "4_hour_ahead_power_p90",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public getKey(): string {
return "method_length";
}
public getDescription(): string {
return "Method length, number of statements";
}
public getConfig() {
return this.conf;
}
public setConfig(conf: MethodLengthConf) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cpu = f'[CPU: {ram()[2]}%_{ram()[3]}ms]\n' if(__cpu_show__) else ''
text = (f'{cpu}{date()}-> {input}')
print(text)
if path_file:
path = open(path_file,'a',encoding='utf-8')
with open(path,'a') as file_p:
file_p.write(text+'\n')
# TODO: write code...
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def filter_in_top_percent(columns, dt, percent):
thresholds = {c: dt.sort_values(c).iloc[int(
len(dt) * (1.0-percent))][c] for c in columns}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
void wxTextEntryBase::DoSetValue(const wxString& value, int flags)
{
EventsSuppressor noeventsIf(this, !(flags & SetValue_SendEvent));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
backendURL: 'bhayanak-streamer-backend.herokuapp.com',
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>isspek/FakeNewsDetectionFramework
python -m src.link.processor --extract_link --mode test
python -m src.link.processor --extract_features --mode test --nela_2019 /home/isspek/data/nela-2019/ --simple_wiki data/simplewiki.tsv | ise-uiuc/Magicoder-OSS-Instruct-75K |
dvr = self.parse_row(row)
self.dvr[dvr.district] = dvr
def parse_row(self, row: List[str]) -> DistrictVotingRecord:
if row[2] == 'EVEN':
lean = 0
elif row[2][0] == 'R':
lean = float(row[2][2:])
else:
lean = -float(row[2][2:])
d1 = float(row[3])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private function validLogin($passwortDB,$passwort,$salt)
{
// new instance of passwortAPI
$passwortAPI = new passwortAPI;
// crypt the Passwort From the login
$userpasswort = $passwortAPI->crypt($passwort,$salt);
// validate the Passwort
if($passwortDB === $userpasswort)
{
return true;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public function announcements()
{
return $this->hasMany('App\Models\Announcement');
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = "0.8"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except socket.error:
print("Error Occured.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dns1,
Some(dns2),
)?
.save(name)?,
Ether::Dhcp => Dhcp {
name: Self::ETH.to_string(),
metric,
options: vec![Dhcp::WWW],
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
element = ReactDOM.render(pug `
.internal-fsb-element(contentEditable='true', suppressContentEditableWarning=true)
| ABC
`, element);
break;
case 'Link':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def next_action(self, environment: Environment) -> act.Action:
next_vectors = self.shortest_path(
environment,
environment.snake.head(),
environment.fruit.get_vector(),
environment.snake.action.vector
)
if not next_vectors:
# If we didn't find the fruit, continue straight in hopes a path
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use rust_hawktracer_proc_macro::*;
pub use rust_hawktracer_normal_macro::*;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.urls import include, path
from .views import classroom
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if _extname:
if _extname not in db['extnames'][_langname]:
db['extnames'][_langname].append(_extname)
db['extnames'][_langname].sort()
if _filename:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pip install -e .[setup]
pip uninstall -y enum34
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const int8_t* mask,
int64_t length,
bool validwhen) {
for (int64_t i = 0; i < length; i++) {
toindex[i] = ((mask[i] != 0) == validwhen ? i : -1);
}
return success();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Meta:
indexes = [
models.Index(fields=['created_at']),
]
# Allow admins to add KattisHandle
admin.site.register(KattisHandle)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public BlockFluidLC(Fluid fluid) {
super(fluid, Material.LAVA);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class CollapseTriggerRenderMixin:
render_template = "djangocms_frontend/bootstrap5/collapse-trigger.html"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
geojson = dl.GeoJSON(data=data, id="geojson", options=dict(style=geojson_csf.style),
hoverStyle=geojson_csf.hover_style)
# Create app.
app = dash.Dash(prevent_initial_callbacks=True)
app.layout = html.Div([dl.Map(children=[dl.TileLayer(), geojson], center=[39, -98], zoom=4, id="map")],
style={'width': '100%', 'height': '50vh', 'margin': "auto", "display": "block"})
# Inject transcrypted javascript.
inject_js(app, js)
if __name__ == '__main__':
app.run_server(port=7777, debug=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yellow_echo "processor service is error"
fi
}
check_processor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const FrequencySpectrum::const_iterator end = _spectrum.end();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bottom_left_corner_of_text = (25, tile.shape[0] - 50)
TileUtils.add_text(tile, str(idx + 1), bottom_left_corner_of_text=bottom_left_corner_of_text,
font_scale=8, thickness=10, color=(0, 0, 0))
TileUtils.add_border(tile, thickness=0.005, color=(0, 0, 0))
# store image
new[
curr_row_slice:curr_row_slice + tile_size, curr_col_slice:curr_col_slice + tile_size, :] = tile
return new
| ise-uiuc/Magicoder-OSS-Instruct-75K |
old_label_field = f'label-{old_label_name}'
oe_label_field = f'label-oe'
ue_label_field = f'label-ue'
for pw in pw_map.values(): # for each pathway
for n in pw.nodes():
nd = pw.nodes[n]
if label_field not in nd:
pw.add_node(n, **{label_field: {}})
if name == 'onekernel':
if pid in nd[oe_label_field].keys():
nd[label_field][pid] = nd[oe_label_field][pid]
elif pid in nd[ue_label_field].keys():
nd[label_field][pid] = nd[ue_label_field][pid]
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
max_length=255,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public dialogRef: MatDialogRef<ClaimDialog>, private _http: HttpClient, public _dialog: MatDialog, @Inject(MAT_DIALOG_DATA) public data) { }
claimCodes: ClaimCodeElement[] = [];
claimButtonDisabled: boolean = true;
inputClaimCodes: string = "";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# draw the first character of the tag name
layout = widget.create_pango_layout(self.tag_name[0].upper());
font_desc = Pango.FontDescription()
font_desc.set_weight(Pango.Weight.HEAVY)
layout.set_font_description(font_desc)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f"{type(tupler((10, 11)))=}")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
operator unsigned int() {
return GetRootValue();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assetsPath: path.join(process.cwd(), 'test', 'test-assets')
};
export function getDirToTest(folder: string): string[] {
return dree
.scan(path.join(testConfig.assetsPath, folder), { depth: 1 })
.children!
.filter(c => c.type == dree.Type.DIRECTORY)
.map(c => c.path);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
processledger(ledger)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Z1=pot2(X,Y)
fig, ax = plt.subplots()
ax.set_aspect('equal','box')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
roi_gen = curves2segments(curves_gen)
#get seg
seg_ref = roi_ref.sum(0)
seg_gen = roi_gen.sum(0)
seg_ref = seg_ref / seg_ref.max() * 255
seg_gen = seg_gen / seg_gen.max() * 255
#get skin mask
skin_src = roi_ref[0] - roi_ref[2:].max(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (MloParent != null)
{
var mloInv = Quaternion.Normalize(Quaternion.Invert(MloParent.Orientation));
Quaternion rel = Quaternion.Normalize(Quaternion.Multiply(mloInv, ori));
Quaternion inv = Quaternion.Normalize(Quaternion.Invert(rel));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public void setId(long id) {
this.id = id;
}
public String getRoomNum() {
return roomNum;
}
public void setRoomNum(String roomNum) {
this.roomNum = roomNum;
}
public String getContent() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def init_globals(self, argv):
"""Initialized globally used module variables.
Needs to be called at start of each plugin instance!
This is an ugly hack because Kodi doesn't execute statements defined on
module level if reusing a language invoker."""
self._library = None
self.COOKIES = {}
self.ADDON = xbmcaddon.Addon()
self.ADDON_ID = self.ADDON.getAddonInfo('id')
self.PLUGIN = self.ADDON.getAddonInfo('name')
self.VERSION = self.ADDON.getAddonInfo('version')
self.DEFAULT_FANART = self.ADDON.getAddonInfo('fanart')
self.ICON = self.ADDON.getAddonInfo('icon')
self.DATA_PATH = self.ADDON.getAddonInfo('profile')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"section_rules",
"entity_rules"
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cache_info['mtime'] = mtime
reloaded = True
return reloaded, cache_info['data']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
#[doc = "0x00 - Module Identification Register"]
pub id: ID,
}
#[doc = "Module Identification Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [id](id) module"]
pub type ID = crate::Reg<u32, _ID>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _ID;
#[doc = "`read()` method returns [id::R](id::R) reader structure"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<link rel="stylesheet" href="<?php echo e(asset('makson/plugin/OwlCarouse/owl.theme.default.min.css')); ?>">
<link rel="stylesheet" href="https://daneden.github.io/animate.css/animate.min.css">
<link rel="stylesheet" href="http://vjs.zencdn.net/6.6.3/video-js.css">
<link rel="stylesheet" href="https://alizahid.github.io/slinky/slinky/slinky.min.css" />
<link rel="stylesheet" href="<?php echo e(asset('makson/css/variable.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('makson/css/index-style.css')); ?>"> | ise-uiuc/Magicoder-OSS-Instruct-75K |
import matplotlib.pyplot as plt
import pandas as pd
#Create a function that reutrns the Goodman correction:
def Goodman_method_correction(M_a,M_m,M_max):
M_u = 1.5*M_max
M_ar = M_a/(1-M_m/M_u)
return M_ar
def Equivalent_bending_moment(M_ar,Neq,m):
P = M_ar.shape
M_sum = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package de.einholz.ehtech.blocks.blockentities.containers.machines.consumers;
import de.alberteinholz.ehmooshroom.container.component.data.ConfigDataComponent.ConfigBehavior;
import de.alberteinholz.ehmooshroom.registry.RegistryEntry;
import de.einholz.ehtech.blocks.blockentities.containers.machines.MachineBlockEntity;
import io.github.cottonmc.component.energy.type.EnergyType;
import io.github.cottonmc.component.energy.type.EnergyTypes;
import net.minecraft.util.Identifier;
public abstract class ConsumerBlockEntity extends MachineBlockEntity {
public ConsumerBlockEntity(RegistryEntry registryEntry) {
this(registryEntry, EnergyTypes.ULTRA_LOW_VOLTAGE);
}
public ConsumerBlockEntity(RegistryEntry registryEntry, EnergyType energyType) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/swagger/ZyplayerStorageController.java
package com.zyplayer.doc.manage.web.swagger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zyplayer.doc.data.repository.manage.mapper.ZyplayerStorageMapper;
@RestController
@RequestMapping("/zyplayer/storage")
public class ZyplayerStorageController {
@Autowired
ZyplayerStorageMapper zyplayerStorageMapper;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
segement.insertSegment(withTitle: "已下载", at: 0, animated: false)
segement.insertSegment(withTitle: "正在下载", at: 1, animated: false)
segement.selectedSegmentIndex = 0
titleBGView.addSubview(segement)
titleBGView.tintColor = UIColor.white
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self.reason.name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool isDestroyed;
bool isNotIntersection;
public:
Object();
virtual ~Object();
explicit Object(const std::string &name, Model::Position position);
Object(const Object &rhs);
Object&operator=(const Object &rhs);
const Model::Position& getPosition() const;
const std::string& getName() const;
void setPosition(Model::Position &position);
bool isDestroy();
void destroy();
bool isIntersect(const Object &object);
void setNotIntersection(bool notIntersection);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if tmp == target:
res.append([nums[i], nums[j], nums[l], nums[r]])
l += 1
r -= 1
while l < r and nums[l] == nums[l-1]:
l += 1
while l < r and nums[r] == nums[r+1]:
r -= 1
elif tmp > target:
r -= 1
else:
l += 1
return res
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from ocnn.modules import Conv1x1BnRelu, OctreeConvBnRelu, Conv1x1Bn, OctreeConvBn
class OctreeResBlock(torch.nn.Module):
r''' Octree-based ResNet block in a bottleneck style. The block is composed of
a series of :obj:`Conv1x1`, :obj:`Conv3x3`, and :obj:`Conv1x1`.
Args:
in_channels (int): Number of input channels.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
card = Card.search_for_one(session, search[1])
if not card:
bot.reply(message, 'no card with that name', create_thread=True)
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
org.jfree.data.general.DatasetGroupTest
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DCL IN[0]
DCL IN[1]
DCL OUT[0], POSITION
DCL OUT[1], COLOR
DCL TEMP[0]
IMM FLT32 { 0.6, 0.6, 0.0, 0.0 }
SLT TEMP[0], IN[0], IMM[0]
MOV OUT[0], IN[0]
MUL OUT[1], IN[1], TEMP[0]
END
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from main.models import Project, Task, ProjectUpload
from main.types import type_list
import traceback
from django.db import transaction
except Exception as e:
syslog.syslog(syslog.LOG_ERR, "Failed importing %s" % e)
raise e
@transaction.commit_on_success
def run_upload(upload):
upload_type = upload.project.type
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class PYATSConnection:
def __init__(self):
self.__testbed = load("./res/testbeds/testbed.yaml")
def __find_device_by_ip(self, ip):
for device_name, device in self.__testbed.devices.items():
if ip == str(device.connections['ssh']['ip']):
return device
| ise-uiuc/Magicoder-OSS-Instruct-75K |
q = MSSQLQuery.from_("abc").select("def").orderby("def").limit(10)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nout = 16
return (X_train, y_train), (X_test, y_test), nout
if __name__ == '__main__':
# hyperparameters
batch_size = 64
num_epochs = args.epochs
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MODULESCRIPT="sentinelone.py"
MODULE_CACHE_FILE="sentinelone.plist"
# Remove preflight script
rm -f "${MUNKIPATH}preflight.d/sentinelone.py"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Time complexity: O(v + e)
Space complexity: O()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name = 'bip32utils',
version = '0.3-3',
author = '<NAME>, Corgan Labs',
author_email = '<EMAIL>',
maintainer = '<NAME>',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Individual scratchpad and maybe up-to-date CDP instance scrapers.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ParkingLotEvent(Enum):
PARK = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exc_tb: Exception traceback
msg: Short description of the exception
see: SetContent()"""
if self._disabled:
return
# don't use exception() because it overwrites exc_info with 1
logging.error(msg, exc_info=(exc_type, exc_value, exc_tb))
self._fill_dialog(msg, exc_type, _('An internal error occurred'))
def _fill_dialog(self, exc_msg, exc_type, header):
"""Fill the bug dialog
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Returns the GMT time telling when the forecast was received
from the OWM Weather API
| ise-uiuc/Magicoder-OSS-Instruct-75K |
node --version 2>&1 | grep "0.10" > /dev/null
[ "$?" -ne 0 ] && echo fail && exit 1
echo pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"main_api"
] | ise-uiuc/Magicoder-OSS-Instruct-75K |
),
required=True,
)
class RevRegsCreatedQueryStringSchema(OpenAPISchema):
"""Query string parameters and validators for rev regs created request."""
cred_def_id = fields.Str(
description="Credential definition identifier",
required=False,
**INDY_CRED_DEF_ID,
)
state = fields.Str(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert(exception_info.value.__str__() ==
"Incorrect state change. Current state is 3")
assert(question1.state == question1.COMPLETE)
question1.change_to_flagged()
assert(question1.state == question1.FLAGGED)
def test_question_state_from_flagged_for_review(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Parse the raw files and extract suitable entries.
Hard coded to work with the files present in ./raw/
- Have to roll your own if you want to parse other raw sources. """
wordlist = []
for filename in filenames:
with open("./raw/" + filename, "r") as _file:
data = _file.read()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export WAIT_FOR_HOST="cassandra3"
export WAIT_FOR_PORT=9042
export CASS_DRIVER_BUILD_CONCURRENCY=4
| ise-uiuc/Magicoder-OSS-Instruct-75K |
>
>()
// Test PullTypes
ta.assert<ta.Extends<{ d: { $eq: true } }, PullTypes<Example>>>()
ta.assert<ta.Extends<{ d: false }, PullTypes<Example>>>()
ta.assert<ta.Extends<{ 'h.i': Date }, PullTypes<Example>>>()
// Test PullTypes
ta.assert<ta.Extends<{ d: [true, false] }, PullAllTypes<Example>>>()
ta.assert<ta.Extends<{ 'h.i': Date[] }, PullAllTypes<Example>>>()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use chrono;
}
#[cfg(feature = "protobuf")]
pub(crate) use eve::parse_date_time;
#[allow(missing_docs)]
#[cfg(feature = "protobuf")]
pub mod proto {
tonic::include_proto!("suricata");
impl crate::intel::Observable for Eve {
fn timestamp(&self) -> chrono::DateTime<chrono::Utc> {
self.timestamp
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.